Skip to content

fix: improve accessibility groupings in FilterSearch and FilterGroups (v2.1.3)#638

Open
k-gerner wants to merge 2 commits intomainfrom
dolce-gabbana-accessibility-2.1.2
Open

fix: improve accessibility groupings in FilterSearch and FilterGroups (v2.1.3)#638
k-gerner wants to merge 2 commits intomainfrom
dolce-gabbana-accessibility-2.1.2

Conversation

@k-gerner
Copy link
Contributor

Changes:

  • Added semantic grouping for facet checkbox sets in FilterGroup by wrapping options in <fieldset> with a first-child <legend> (default sr-only), and introduced groupLegendClassName for legend styling overrides. Updated facet-related tests to verify fieldset/legend structure and adjusted title assertions to role-based queries where legend text duplicates visible headings.
  • added optional region landmark semantics to FilterSearch
  • root FilterSearch container now conditionally gets role="region" and aria-label when a region label is available, set via resultsRegionAriaLabel prop

J=WAT-5415
TEST=auto

@k-gerner k-gerner requested a review from a team as a code owner February 26, 2026 20:12
@k-gerner k-gerner changed the title fix: improve accessibility groupings in FilterSearch and FilterGroups (v2.1.2) fix: improve accessibility groupings in FilterSearch and FilterGroups (v2.1.3) Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant