Skip to content

Required context role question #1864

Answered by scottaohara
angelicochris asked this question in Q&A
Discussion options

You must be logged in to vote

maybe a question for site improve why they are marking this as invalid. there's no issue here, based on the markup provided. role=presentation double negates the li elements' list item semantics (it's also already negated due to the fact that the ul has a role=tablist which already means the li elements lose their list item semantics. so, as far as the a11y tree is concerned, there's a direct parent/child relationship between the tablist and its tab descendants.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@angelicochris
Comment options

@scottaohara
Comment options

@angelicochris
Comment options

Answer selected by angelicochris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants