mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tooltip: Add role='application' to body when there is no role attribute; required for screenreaders to interpret aria attributes correctly
This commit is contained in:
parent
32e9d58963
commit
3bd4de2a87
5
ui/jquery.ui.tooltip.js
vendored
5
ui/jquery.ui.tooltip.js
vendored
@ -14,6 +14,11 @@
|
||||
*/
|
||||
(function($) {
|
||||
|
||||
// role=application on body required for screenreaders to correctly interpret aria attributes
|
||||
if( !$(document.body).is('[role]') ){
|
||||
$(document.body).attr('role','application');
|
||||
}
|
||||
|
||||
var increments = 0;
|
||||
|
||||
$.widget("ui.tooltip", {
|
||||
|
Loading…
Reference in New Issue
Block a user