Actions
Improvements #14380
opentooltip does not display in bootstrap 5
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 "";
}
}
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
Updated by Romain Mardulyn 5 days ago
- Tracker changed from Bug to Improvements
- Status changed from InProgress to Review
- Assignee deleted (
Romain Mardulyn)
Updated by Raf Pauwels 2 days ago
- Status changed from Review to Resolved
- Assignee changed from Raf Pauwels to Romain Mardulyn
Updated by Romain Mardulyn 1 day ago
- Status changed from Resolved to Implemented @Emweb
Actions