Replies: 2 comments 6 replies
-
It seems this tool is validating against the ARIA in HTML specification: https://www.w3.org/TR/html-aria/#avoid-specifying-redundant-roles
I checked with @jnurthen and we are in agreement that the IBM checker may be overstepping here by making a best practice recommendation a requirement. Redundant, yet correct, aria roles have no perceivable effect on the behavior of assistive technologies. I’m also a bit worried about the behavior when the table DOM structure is altered with virtualization. That being said, we may be able to determine the implicit role of the element that the react-spectrum/packages/@react-aria/grid/src/useGridRow.ts Lines 42 to 84 in 369e1e7 So at line 70, use something like this: role: (ref?.current?.tagName === 'TR' ? undefined : 'row'), |
Beta Was this translation helpful? Give feedback.
-
When running a page with a table through this checked, it highlights the following issue:
Specifically, this happens because all the elements inside a table have a row, but this tool seems to think that this is invalid based on aria rules. Links provided by the checker:
https://www.ibm.com/able/requirements/requirements/#4_1_2
https://www.w3.org/TR/wai-aria-1.2/
Any thoughts on this?
Beta Was this translation helpful? Give feedback.
All reactions