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

RAC Virtualizer content element should have role="presentation" #6617

Closed
majornista opened this issue Jun 25, 2024 · 0 comments · Fixed by #6631
Closed

RAC Virtualizer content element should have role="presentation" #6617

majornista opened this issue Jun 25, 2024 · 0 comments · Fixed by #6631
Assignees
Labels
accessibility bug Something isn't working

Comments

@majornista
Copy link
Collaborator

The generic div container that wraps the virtualized elements and provides the content height for native scrolling should have role="presentation" so that it does not break the accessibility tree structure for the containing grid, menu or listbox.

The problem can be seen in the Virtualized RAC table at: https://reactspectrum.blob.core.windows.net/reactspectrum/ff19a7c1ca7fccfd3e46eeef1c6b71ef23f36437/storybook/index.html?path=/story/react-aria-components--virtualized-table&providerSwitcher-express=false

We may wish to return role="presentation" at:

contentProps: {
style: innerStyle
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility bug Something isn't working
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

2 participants