Skip to content

Commit

Permalink
Added aria-hidden="true" to the stickyHeader <div> so the duplicative…
Browse files Browse the repository at this point in the history
… headers are ignored by assistive technology. Props to Karl Groves.
  • Loading branch information
kingkool68 committed Jun 20, 2013
1 parent 059dabc commit 1f1795b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stickyheader.jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $(document).ready(function () {
var table = tables[i];
var tableClone = $(table).clone(true).empty().removeClass('stickyHeader');
var theadClone = $(table).find('thead').clone(true);
var stickyHeader = $('<div></div>').addClass('stickyHeader hide');
var stickyHeader = $('<div></div>').addClass('stickyHeader hide').attr('aria-hidden', 'true');
stickyHeader.append(tableClone).find('table').append(theadClone);
$(table).after(stickyHeader);

Expand Down

0 comments on commit 1f1795b

Please sign in to comment.