Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aria-expanded must be a false string, not absent #1599

Merged
merged 1 commit into from
Nov 24, 2020

Conversation

PVince81
Copy link
Contributor

@PVince81 PVince81 commented Nov 24, 2020

When setting the boolean to false, the DOM attribute "aria-expanded"
disappears.

For screen readers to be able to say "Actions push button collapsed" instead of just "Actions push button" the
attribute must be present and set to the string "false" instead of
absent.

Discovered this by comparing screen reader behavior with the example from https://www.w3.org/TR/2016/WD-wai-aria-practices-1.1-20161214/examples/menu-button/menu-button-1/menu-button-1.html

When setting the boolean to false, the DOM attribute "aria-expanded"
disappears.

For screen readers to be able to say "Actions push button collapsed" the
attribute must be present and set to the string "false" instad of
absent.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
@PVince81 PVince81 added bug Something isn't working accessibility Making sure we design for the widest range of people possible, including those who have disabilities labels Nov 24, 2020
@PVince81 PVince81 self-assigned this Nov 24, 2020
@ChristophWurst ChristophWurst merged commit deae838 into master Nov 24, 2020
@ChristophWurst ChristophWurst deleted the bugfix/noid/aria-expanded-false branch November 24, 2020 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Making sure we design for the widest range of people possible, including those who have disabilities bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants