Closed
Description
When running TableViews in Firefox screen readers (VO, NVDA and JAWS) do not read tables correctly. All tables only show 1 row.
To reproduce:
- https://react-spectrum.adobe.com/react-spectrum/TableView.html
- Start a screen reader
- Navigate to the table
- Use the browser virtual cursor table navigation to try to read the table
This is caused by the following:
<div role="presentation" class="spectrum-Table-body_d0fc74" tabindex="-1" style="padding: 0px; flex: 1 1 0%; overflow: auto;">
- This has tabindex = -1 so FF is correctly (according to spec) ignoring the role="presentation" so it is exposing this as a section hence breaking the table hierarchy and breaking the table
- Removing tabindex=-1 does not help as the element has a scroll event on it so FF automatically adds it to the tab navigation
The only solution I can see is to add role="rowgroup" to this element and then switch the existing child role="rowgroup" to role="presentation". This seems to resolve the issue.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
✅ Done