Improve the panel toggle aria labels #2376
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
The panel toggles in the sidebar:
are buttons with aria-label and aria-expanded attributes. The current text used for the aria-labels prepends "Open section: " to the panel titles. This could be improved a bit because the combined effect of the text and aria-expanded state is a bit weird. Depending on the state, they are announced as, for example:
Open section: Excerpt collapsed
Open section: Excerpt expanded
where the second message doesn't make much sense. The Customizer uses "Toggle section:" but, unfortunately, "toggle" is hard to translate in many languages.
Maybe use just "Section: "?
The text was updated successfully, but these errors were encountered: