Quantcast
Viewing all articles
Browse latest Browse all 295807

Add aria-sort attribute to Views table output

Problem/Motivation

In #1342760: Add aria-sort to table sort we added the aria-sort attribute to our sortable tables. You can find this in the headers of the recent log messages table at admin/reports/dblog, for example.

It would be good to add aria-sort to Views table displays too. The previous issue actually predates the official VDC initiative, and it seems that the views_view_table theme hook doesn't use tablesort_header().

Proposed resolution

Include the aria-sort attribute with the Views table display plugin.

Remaining tasks

  • Add aria-sort to Views table headers - DONE, patching template_preprocess_views_view_table()
  • Tests - confirm presence + direction of aria-sort attribute.

User interface changes

No visual changes.
Adds aria-sort attribute to table headers for assistive tech.

API changes

None.

Data model changes

None.


Viewing all articles
Browse latest Browse all 295807

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>