Closed kbeck303 closed 2 years ago
The best solution to this would make tables appear to screen readers the same in all views, regardless of screen width. The regular headings could be displayed to screen readers while tablesaw-cell-label is hidden.
It's worth noting that this may strip the semantic accessibility tree of the table in in older browsers 😢 (source) This fix does however work great on my iPhone and all modern browsers. Unfortunately I cannot find a list of browsers when this was changed.
I usually follow how the gov.uk site does things accessibility wise and display: block
is used on there.
Set the mobile table element to block display.
This CSS change allows screen readers to access the mobile table content, which has already been changed to a block display.