backdrop / backdrop-issues

Issue tracker for Backdrop core.
144 stars 40 forks source link

[A11Y] Add 'aria-sort' attribute to Views' tables #4812

Open ghost opened 3 years ago

ghost commented 3 years ago

Sortable tables outside of Views have an aria-sort attribute indicating the sort direction:

image

However, tables created with Views don't have this:

image

Can we please add the aria-sort attribute to Views' tables too?

ghost commented 3 years ago

One of the (non-accessibility related) reasons for wanting this is that Basis uses this attribute to change the tablesort indicators: https://github.com/backdrop/backdrop/blob/f3fa59b6cb8cb15e06e0ccf040fd5bd6a48d9690/core/themes/basis/css/base.css#L179

In the case of Views' tables, Basis is forced to use the default tablesort indicators, causing a break in the consistency of the theme's design.