Skip to content

Commit b50d4a1

Browse files
committed
Merge pull request twbs#13060 from twbs/role-tooltip
add role="tooltip" to tooltips by default to improve accessibility
2 parents 905c781 + 8a6cdff commit b50d4a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/tooltip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
animation: true,
3030
placement: 'top',
3131
selector: false,
32-
template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
32+
template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
3333
trigger: 'hover focus',
3434
title: '',
3535
delay: 0,

0 commit comments

Comments
 (0)