- First commit to issue fork.
- Merge request !6821Use aria disclosure pattern in vertical toolbar submenu toggle buttons. β (Open) created by camilledavis
- Status changed to Needs review
10 months ago 8:03pm 28 February 2024 Made MR based on the following feedback from @maxstarkenburg in #accessibility Slack:
- Remove the ["Expand/Collapse" text] because it's redundant with information a screen reader would already announce via aria-expanded.
- Depending on who you ask, the button's accessible name (potentially via aria-labelledby) ought to be "[sibling link text]" or "[sibling link text] sub-menu" or "More [sibling link text]".
- Also, personally, I would recommend not letting the effort to add aria-controls block this issue (perhaps could be made into a separate issue?), since adding aria-expanded and removing the incorrect state would both be easier wins, adding value sooner. aria-controls seems to have limited AT support and/or be semi-"controversial" in its usefulness, see e.g. https://heydonworks.com/article/aria-controls-is-poop/ and https://github.com/w3c/aria/issues/995
- Status changed to Needs work
10 months ago 11:46pm 29 February 2024 - πΊπΈUnited States smustgrave
Know it's a task but possible to add a simple assertion that checks the aria value. So we can ensure we don't break this.