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

Be more percise with allowed roles on the li element #351

Closed
scottaohara opened this issue Sep 15, 2021 · 0 comments · Fixed by #410
Closed

Be more percise with allowed roles on the li element #351

scottaohara opened this issue Sep 15, 2021 · 0 comments · Fixed by #410
Assignees
Labels
Allowed roles Pertaining to the allowed roles of HTML elements

Comments

@scottaohara
Copy link
Member

scottaohara commented Sep 15, 2021

The allowed roles on list items (<li> elements) are missing a requirement that the parent ol, ul, menu role must be overwritten to allow for these specific roles that would not be valid within a role=list.

Furthermore, if a parent list element's is set to role=none, then i could see an argument that the allowed roles for a list item be expanded, and author guidance be provided that the list items need to have their roles overwritten, since without the parent role, the list items would be announced, at least in some cases - as memory serves, as disparate single item lists. Something to mull over, @stevefaulkner @patrickhlauke

Edit: tested the ul role=none with stray <li> elements within today. at least narrator, jaws and nvda with chromium / gecko browsers do not expose lists/list items for these individual items anymore. A series of 3 list items, with a role=none parent, can instead be strung together as a single text string announcement. Tldr; not as bad as my memory of how these used to behave, but still kind of odd. In this case, again, it seems worth while to open up the allowances for list items when the parent list is no longer exposed as such.

@scottaohara scottaohara added the Allowed roles Pertaining to the allowed roles of HTML elements label Sep 15, 2021
@scottaohara scottaohara added this to the ARIA in HTML: Next milestone Sep 20, 2021
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants