spectrum-web-components
spectrum-web-components copied to clipboard
[Bug][a11y]: Static Tables can use role="table" and role="cell" instead of role="grid" and role="gridcell"
trafficstars
Code of conduct
- [X] I agree to follow this project's code of conduct.
Impacted component(s)
Table
Expected behavior
The current Table implementation does not support row or column navigation using the arrow keys. As such, without selects or selected attributes, it is essentially a static table and, and role="table" and role="cell" may be preferred over role="grid" and role="gridcell".
Actual behavior
Static Table without selection uses role="grid" and role="gridcell", without supporting navigation of the grid using arrow keys.
Screenshots
No response
What browsers are you seeing the problem in?
No response
How can we reproduce this issue?
- Go to '...'
- Click on '....'
- Scroll to '....'
- Check console
- See error
Sample code that illustrates the problem
No response
Logs taken while reproducing problem
No response
When we change these roles, some of the underlying functionality here needs to change, too.