Skip to content

Commit

Permalink
Fix tooltips whitespace-normal to tooltip
Browse files Browse the repository at this point in the history
If a parent of tooltips has no-wrap or truncate, the tooltip text will overflow if it exceeds the max-width. Adding whitespace-normal to tooltip:before will reset this behavior.
  • Loading branch information
djl997 authored Jun 23, 2024
1 parent f588eb2 commit 8474cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities/styled/tooltip.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@apply absolute;
}
.tooltip:before {
@apply max-w-xs rounded px-2 py-1 text-sm;
@apply max-w-xs rounded px-2 py-1 text-sm whitespace-normal;
background-color: var(--tooltip-color);
color: var(--tooltip-text-color);
width: max-content;
Expand Down

0 comments on commit 8474cbf

Please sign in to comment.