Nested interactivity in list view elements #3683
Unanswered
tanishqkancharla
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hey, thanks for the interest! Before I go answering this. Have you read through our docs on grid lists as well as the spec that it links to and implements? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I wanted to ask a question about nested interactive elements. I'm specifically referring to this example in the ListView page: https://react-spectrum.adobe.com/react-spectrum/ListView.html#complex-items. I'm not interested in using the component, more so just details of the implementation that lead to it being accessible.
How is it ensured that nested interactive elements are accessible? I know that nested buttons and nested links are disallowed by the html spec. But is it okay if the parent container is a
div.role="grid"
? In that case, how is the action attached to the component so voice-only-users and keyboard-users can activate it (is attaching onKeyDown forEnter
and onClick enough)? Using the accessibility inspector on the whole cell, I can see that the "press" action correctly shows up: what is needed to ensure that (in the case of a custom implementation)?Beta Was this translation helpful? Give feedback.
All reactions