#46725 closed defect (bug) (fixed)
Site Health: make sure layout tables have no semantics
Reported by: | afercia | Owned by: | afercia |
---|---|---|---|
Milestone: | 5.2 | Priority: | normal |
Severity: | normal | Version: | 5.2 |
Component: | Site Health | Keywords: | has-screenshots site-health has-patch |
Focuses: | accessibility | Cc: |
Description
The Site Health Info reports use HTML tables. See in the screenshot below:
During today's accessibility team meeting, we've discussed if these tables should be treated as data tables (and thus have proper table headers) or as simple layout tables.
Agreed for layout tables, as the table data is "relational in rows, it's just that it's not totally consistent data types that could use headers effectively."
In fact, the data in the right column can be paths, sizes, names, version numbers, URLs, etc. That makes nearly impossible to identify some headers text that can accurately represent the data type.
Also, agreed the most important thing is to communicate this data to assistive technologies in the simpler possible way (ensuring the content makes sense when linearized) rather than trying to identify what HTML semantics could be the most appropriate.
The accessibility team recommendation is to add an ARIA role="presentation"
to the table
element. For technologies that support ARIA, this actually removes any semantics from the table and its required children (all the cells).
Tests and support data available on powermapper:
https://www.powermapper.com/tests/screen-readers/tables/table-role-presentation-layout-table/
Created initial patch to add an ARIA role="presentation" to the table element.