Commit a5b4fa35 authored by Fatih Acet's avatar Fatih Acet

Merge branch 'active-element-tooltip' into 'master'

Do not show tooltip for active element

## What does this MR do?

Change Bootstrap's default for tooltips to display them only when hovering and not for the active element.

See also here: https://getbootstrap.com/javascript/#tooltips-options

## Screenshots

### Before

![before](/uploads/c5b7bd9eba07ca61bfa5ba014d08dd1a/before.webm)

### After

![after](/uploads/d8c4a69e5a6797d8d26ab92cb96fcb2d/after.webm)

## What are the relevant issue numbers?

Closes #23794

See merge request !7105
parents 458fa667 009f1251
...@@ -20,6 +20,7 @@ Please view this file on the master branch, on stable branches it's out of date. ...@@ -20,6 +20,7 @@ Please view this file on the master branch, on stable branches it's out of date.
- Removed delete branch tooltip !6954 - Removed delete branch tooltip !6954
- Stop unauthorized users dragging on milestone page (blackst0ne) - Stop unauthorized users dragging on milestone page (blackst0ne)
- Restore issue boards welcome message when a project is created !6899 - Restore issue boards welcome message when a project is created !6899
- Do not show tooltip for active element !7105 (winniehell)
- Escape ref and path for relative links !6050 (winniehell) - Escape ref and path for relative links !6050 (winniehell)
- Fixed link typo on /help/ui to Alerts section. !6915 (Sam Rose) - Fixed link typo on /help/ui to Alerts section. !6915 (Sam Rose)
- Fix filtering of milestones with quotes in title (airatshigapov) - Fix filtering of milestones with quotes in title (airatshigapov)
......
...@@ -188,6 +188,7 @@ ...@@ -188,6 +188,7 @@
// Close select2 on escape // Close select2 on escape
}); });
// Initialize tooltips // Initialize tooltips
$.fn.tooltip.Constructor.DEFAULTS.trigger = 'hover';
$body.tooltip({ $body.tooltip({
selector: '.has-tooltip, [data-toggle="tooltip"]', selector: '.has-tooltip, [data-toggle="tooltip"]',
placement: function(_, el) { placement: function(_, el) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment