Skip to content

Table > Remove tabindex

Problem

The rows shouldn't be interactive elements, and nothing otherwise indicates that they are so this should be removed. The ability to select a row interferes with expected behavior, like simply reading table content on a screen reader. The negative impact seemed to be exacerbated with the stacked view.

Solution

tab-index="0" shouldn't be used at all here. If there is a table that requires selectable elements then it should use standard interactive elements or a grid widget.

Edited by Jeremy Elder