fix(a11y): label + aria-expanded on every collapsible toggle (MAPPS-286) #292
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/mokosh-apps!292
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-286-collapsible-aria"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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-controlson 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