axe-core icon indicating copy to clipboard operation
axe-core copied to clipboard

Add rules for ARIA tables / grid

Open WilcoFiers opened this issue 3 years ago • 2 comments

Axe-core has no rules that test ARIA grid / tables like this:

<div role="grid">
	<div role="row">
		<div role="columnheader">Room</div>
		<div role="columnheader">Occupant</div>
	</div>
	<div role="row">
		<div role="gridcell">1A</div>
	</div>
	<div role="row">
		<div role="gridcell">2A</div>
	</div>
</div>

WilcoFiers avatar Aug 16 '20 13:08 WilcoFiers

Could you expand on what the rule would check? Our aira-required-children/parent rules already check the structure is correct.

straker avatar Sep 03 '20 16:09 straker

Specifically, run the ARIA equivalent of th-has-data-cell. We're currently testing this for native tables, but not for ARIA.

Low priority though, this the native table rules only reports incompletes.

WilcoFiers avatar May 31 '22 10:05 WilcoFiers