From: Derk-Jan Hartman Date: Wed, 7 Aug 2013 15:22:59 +0000 (+0200) Subject: Accessibility: make columnheader the primary role of the element X-Git-Tag: 1.31.0-rc.0~19009^2 X-Git-Url: http://git.cyclocoop.org/%22.%24redirect_annul.%22?a=commitdiff_plain;h=5b17571e6917fb819d8d8a191df90dd88d468e09;p=lhc%2Fweb%2Fwiklou.git 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 --- 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] } ); }