You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use a <abbr title="...">...</abbr> abbreviation in text.
This is good because it provides context for YTD and other terms that not everybody knows.
Now, because in 2023 every human-computer interaction that takes more than 10ms is broken, and because browsers typically take 1,000ms to show that abbreviation title, I use BS tooltips to show this abbreviation.
In this scenario, the tooltip will properly show on mouse-over. But now it is hiding the dotted underline styling that makes this feature discoverable.
Expected:
Actual:
Reduced test cases
Please try this as-is, and then when commenting out the script at bottom.
Indeed, Bootstrap Tooltip JS will use title and replace it with data-bs-original-title, and so the dotted default browser rendering will be broken because I suppose that <abbr> uses title to make the dotted rendering. Even the accessibility will be probably broken because the title of an <abbr> is read by screen readers.
Haven't tested it at all but you could maybe try something like this (kinda ugly) in the meantime (even if you'll probably have both tooltips: browser + Bootstrap):
<abbrtitle="Bootstrap"><spantitle="Bootstrap">BS</span></abbr> is awesome
<script>// Activate BS5 tooltips everywhere[].slice.call(document.querySelectorAll('[title]')).forEach((el)=>newbootstrap.Tooltip(el.querySelector('span')));</script>
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
Describe the issue
I use a
<abbr title="...">...</abbr>
abbreviation in text.This is good because it provides context for YTD and other terms that not everybody knows.
Now, because in 2023 every human-computer interaction that takes more than 10ms is broken, and because browsers typically take 1,000ms to show that abbreviation title, I use BS tooltips to show this abbreviation.
In this scenario, the tooltip will properly show on mouse-over. But now it is hiding the dotted underline styling that makes this feature discoverable.
Expected:

Actual:

Reduced test cases
Please try this as-is, and then when commenting out the
script
at bottom.Repro: https://stackblitz.com/edit/github-rpfnqj-hsmnpo?file=index.html
What operating system(s) are you seeing the problem on?
macOS
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
5.3.0
The text was updated successfully, but these errors were encountered: