Add generation of aria-controls and aria-labeledby attributes
This commit is contained in:
parent
9afc75f2b1
commit
deb887727a
@ -46,7 +46,6 @@
|
||||
}
|
||||
|
||||
$(this).attr('role', 'tab');
|
||||
|
||||
});
|
||||
|
||||
$(tabPanels).each(function(index) {
|
||||
@ -58,6 +57,8 @@
|
||||
}
|
||||
|
||||
$(this).attr('role', 'tabpanel');
|
||||
$(this).attr('aria-labeledby', $(tabs[index]).attr('id'));
|
||||
$(tabs[index]).attr('aria-controls', $(this).attr('id'));
|
||||
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user