Skip to content

Need help with DataTable > TableToolbarMenu #7495

Answered by joshblack
nikhilkomakula asked this question in Help
Discussion options

You must be logged in to vote

Hi there @nikhilkomakula! 👋

Unfortunately, combining the Checkbox and Overflow Menu in this way will cause some accessibility violations 😞

I believe the interaction that would be needed is for the option to be of role menuitemradio and instead, by default, it is menuitem. Similarly, the Checkbox (which uses an <input type="checkbox"> under the hood) wouldn't communicate the aria-checked attribute that is needed along with menuitemradio.

While this isn't a direct example, I believe: https://www.w3.org/TR/wai-aria-practices/examples/menubar/menubar-2/menubar-2.html captures some of these ideas with the menu dropdowns.

Unfortunately, this is a drawback of OverflowMenu especially when combine…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@nikhilkomakula
Comment options

Answer selected by jnm2377
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants