You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A common issue i've been finding with interactive tables/grids where rows are focusable is that the row, if not provided an aria-label will either communicate no name, or (particularly in chromium browsers) will calculate an accName from the entirety of all the cells in that row. (this is a chromium behavior that goes beyond rows and is making for many instances of overly verbose content.)
One way I was thinking to mitigate against these unwanted outcomes was to propose that if a row is focusable, that it should look to see if it has a th element as its child, and if so, to use that element's subtree as its accessible name.
The algorithm for the th element might instead look like
if the tr is not focusable
aria-label or aria-labelledby
title attribute
there is no name
(I generally question why someone is naming a table row if it is not focusable. maybe prohibit this?)
if the tr is focusable
aria-label or aria-labelledby
the subtree (or accName) of the first th element
the title attribute
the subtree of the first x cells of the row
there is no name (unlikely?)
The text was updated successfully, but these errors were encountered:
A common issue i've been finding with interactive tables/grids where rows are focusable is that the row, if not provided an
aria-label
will either communicate no name, or (particularly in chromium browsers) will calculate an accName from the entirety of all the cells in that row. (this is a chromium behavior that goes beyond rows and is making for many instances of overly verbose content.)One way I was thinking to mitigate against these unwanted outcomes was to propose that if a row is focusable, that it should look to see if it has a
th
element as its child, and if so, to use that element's subtree as its accessible name.The algorithm for the
th
element might instead look likeif the
tr
is not focusablearia-label
oraria-labelledby
title
attribute(I generally question why someone is naming a table row if it is not focusable. maybe prohibit this?)
if the
tr
is focusablearia-label
oraria-labelledby
th
elementtitle
attributeThe text was updated successfully, but these errors were encountered: