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

Provide caveats to when role=none may be allowed #433

Open
scottaohara opened this issue Oct 4, 2022 · 0 comments
Open

Provide caveats to when role=none may be allowed #433

scottaohara opened this issue Oct 4, 2022 · 0 comments
Labels
Allowed roles Pertaining to the allowed roles of HTML elements Clarification needed Revise or expand the information provided

Comments

@scottaohara
Copy link
Member

The typical rule for button and input elements is that role=none | presentation is not allowed. This makes sense because the conflict resolution for the role would result in it immediately being ignored due to these elements being focusable.

However, if one were to also specify the disabled attribute on these elements, then the element is no longer focusable and so long as there are not any other conflicts with the role, it will make these elements return as 'presentational'.

e.g., <button disabled role=none>yo</button>

This issue should be considered in tandem with #365

@scottaohara scottaohara added Allowed roles Pertaining to the allowed roles of HTML elements Clarification needed Revise or expand the information provided labels Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Allowed roles Pertaining to the allowed roles of HTML elements Clarification needed Revise or expand the information provided
Projects
None yet
Development

No branches or pull requests

1 participant