Expose toggle buttons in accessibility tree #2444
Labels
accessibility
Issue related to accessibility.
status:confirmed
An issue confirmed by the development team.
support:2
An issue reported by a commercially licensed client.
type:feature
A feature request.
Milestone
Type of report
Feature request
Provide description of the new feature
There are many toggle buttons inside editor's toolbar, e.g. "Bold", "Italic", "Underline" etc. To correctly expose them as toggle buttons in a11y tree, they must have
[role=button]
and[aria-pressed]
attribute.Default state:
Toggled/pressed state:
However we don't add
[aria-pressed=false]
for not-pressed buttons, as we do not distinguish between ordinary buttons and toggle ones. We only add[aria-pressed=true]
when toggle buttons are activated. We could introduce the new toggle button category, which will always have[aria-pressed]
attribute, removing handling of this attribute from ordinary buttons at the same time.The text was updated successfully, but these errors were encountered: