fix(a11y): label + aria-expanded on every collapsible toggle (MAPPS-286) #292

Merged
YousifShkara merged 1 commit from fix/MAPPS-286-collapsible-aria into main 2026-06-21 07:20:58 +02:00
Owner

CollapsibleCard kept aria-expanded but never tied the toggle to its body region, so assistive tech announced "expanded" without telling the user what was being expanded. Add an id on the body and aria-controls on the button so screen readers announce "Contacts, expanded, controls 'lc-collapsible-contacts'" (or equivalent). CollapsibleRail's chevron buttons had aria-label but no aria-expanded, so a screen-reader user couldn't tell whether the rail was open or closed; bind the attribute to the rail's collapsed signal in both the wide-screen toggle and the narrow-screen edge-handle case. The chevron glyph itself was punctuation and was not announced.

#MAPPS-286

CollapsibleCard kept aria-expanded but never tied the toggle to its body region, so assistive tech announced "expanded" without telling the user what was being expanded. Add an id on the body and `aria-controls` on the button so screen readers announce "Contacts, expanded, controls 'lc-collapsible-contacts'" (or equivalent). CollapsibleRail's chevron buttons had aria-label but no aria-expanded, so a screen-reader user couldn't tell whether the rail was open or closed; bind the attribute to the rail's collapsed signal in both the wide-screen toggle and the narrow-screen edge-handle case. The chevron glyph itself was punctuation and was not announced. #MAPPS-286
fix(a11y): label + aria-expanded on every collapsible toggle (MAPPS-286)
All checks were successful
Create release / Create release from merged PR (pull_request) Has been skipped
Check / clippy + fmt + tests (pull_request) Successful in 1m17s
dfbcbac63e
CollapsibleCard kept aria-expanded but never tied the toggle to its body region, so assistive tech announced "expanded" without telling the user what was being expanded. Add an id on the body and `aria-controls` on the button so screen readers announce "Contacts, expanded, controls 'lc-collapsible-contacts'" (or equivalent). CollapsibleRail's chevron buttons had aria-label but no aria-expanded, so a screen-reader user couldn't tell whether the rail was open or closed; bind the attribute to the rail's collapsed signal in both the wide-screen toggle and the narrow-screen edge-handle case. The chevron glyph itself was punctuation and was not announced.

#MAPPS-286
YousifShkara deleted branch fix/MAPPS-286-collapsible-aria 2026-06-21 07:20:58 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/mokosh-apps!292
No description provided.