Repository navigation
fix(lxlweb): a11y FS10, NL30 (correct forms) - #1700
Merged
Merged
Conversation
jesperengstrom
marked this pull request as ready for review
October 7, 2026 09:44
olovy
approved these changes
Oct 8, 2026
olovy
left a comment
Contributor
There was a problem hiding this comment.
LGTM!
My only comment is that the radio button labels don't span the full width of the facet panel. The hover highlight is for the full width but only the text can be clicked.
For links and checkboxes the full width is clickable.
Contributor
|
As I understand it, it is best practice to not change the pointer for checkboxes and radio buttons. But it feels a bit spretigt with mixed hand and regular pointer in the facet panel. |
Contributor
Author
fixed in 3cd9e4e
Agreed, but as you say it's default behaviour and I don't think we should tamper with it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Solves
Use correct forms and form controls
The report mainly focuses on supersearch, but also points out a number of issues regarding the filter panel:
I've replaced the 'form simulation links' with two new components,
FacetRadioandFacetCheckboxwhich uses real form elements includingfieldset,legendandlabel. To do this completely by the book, we should also have a 'submit' button. But there's a technical limitation to this: the frontend cannot compute the resulting query from multiple choices made; we must use theview.@idfor each. Which means navigation has to happenonChange, which makes them JS dependent.Apart from this tradeoff, this seems to work pretty well. Svelte's
keep-focusandno-scrolloptions manages to update the results while keeping focus. A small debouncer prevents too many navigations to occur while moving through radio buttons. In the case of a completely server-rendered page (no JS), theFacetLinks are rendered instead.Pros:
Drawbacks:
Summary of changes
FacetGroup->FacetFacetValue->FacetLinkFacetLinksFacetRadioandFacetCheckboxcomponents