From 5b17571e6917fb819d8d8a191df90dd88d468e09 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Wed, 7 Aug 2013 17:22:59 +0200 Subject: [PATCH] Accessibility: make columnheader the primary role of the element The role attribute overrides implicit roles. Since here the columnheader role of the th is more important than the secondary role of being a button, we should force it explicitly in that order. Follow up of: I2b937eba605b7e6a98612a02c75eb9e7f3477527 Change-Id: I07211263876a58c62e5a349eab6f78e43d412680 --- resources/jquery/jquery.tablesorter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/jquery/jquery.tablesorter.js b/resources/jquery/jquery.tablesorter.js index 115a49acf5..cac056e1d0 100644 --- a/resources/jquery/jquery.tablesorter.js +++ b/resources/jquery/jquery.tablesorter.js @@ -347,7 +347,7 @@ .addClass( table.config.cssHeader ) .prop( 'tabIndex', 0 ) .attr( { - role: 'button', + role: 'columnheader button', title: msg[1] } ); } -- 2.20.1