Project

General

Profile

Actions

Improvements #14380

open

tooltip does not display in bootstrap 5

Added by Mark Travis 7 days ago. Updated 1 day ago.

Status:
Implemented @Emweb
Priority:
High
Target version:
Start date:
03/07/2026
Due date:
% Done:

0%

Estimated time:

Description

When you apply Wt::WBootstrap5Theme(), Wt hardcodes the legacy Bootstrap 3 class "in" to animate tooltips when you hover over them.

Modern Bootstrap 5 styling expects the class "show". Because the tooltip has "in" instead of "show" some Bootstrap 5 libraries explicitly hide any .fade element that doesn't have the .show class.

Wt injects , it triggers .fade:not(.show) and gets an opacity: 0; applied to it permanently.

Changing the following method in WBootstrap5Theme to use "show" instead of "in" should fix the problem.


std::string WBootstrap5Theme::utilityCssClass(int utilityCssClassRole) const
{
  switch (utilityCssClassRole) {
  case ToolTipInner:
    return "tooltip-inner";
  case ToolTipOuter:
    return "tooltip fade top in position-absolute";
  default:
    return "";
  }
}
Actions #1

Updated by Romain Mardulyn 5 days ago

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn
  • Target version set to 4.12.6
Actions #2

Updated by Romain Mardulyn 5 days ago

  • Tracker changed from Bug to Improvements
  • Status changed from InProgress to Review
  • Assignee deleted (Romain Mardulyn)
Actions #3

Updated by Romain Mardulyn 5 days ago

  • Assignee set to Raf Pauwels
Actions #4

Updated by Raf Pauwels 2 days ago

  • Status changed from Review to Resolved
  • Assignee changed from Raf Pauwels to Romain Mardulyn
Actions #5

Updated by Romain Mardulyn 1 day ago

  • Status changed from Resolved to Implemented @Emweb
Actions

Also available in: Atom PDF