]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Accessibility update for tooltip.js
authorMatty Williams <mattyqwilliams@gmail.com>
Wed, 29 May 2019 18:48:59 +0000 (21:48 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 30 Nov 2020 10:07:51 +0000 (12:07 +0200)
commitb0372bb6588ab12c398e5dbf39950dfd3269575e
tree06167eb1c2ac5542c4b4afdeba21386a013113ff
parentaf5744440583e0a13ad637bc41e8e7a4074086fb
Accessibility update for tooltip.js

Update to the tooltip.js to add an aria-label attribute that contains the original title of the element, but only if the element doesn't have an existing aria-label attribute.

This is to address cases where screen readers are not capturing the aria-describedby attribute that is added when the tooltip is triggered.  This should also avoid a race condition between the screen reader and the appearance of the tooltip.
js/src/tooltip.js