Skip to content

Commit

Permalink
Fix(web): Change max width for dismissible tooltip
Browse files Browse the repository at this point in the history
- Changed css value of isDismissible class to
prevent width jumps on mouse hovering
  • Loading branch information
pavelklibani committed May 14, 2024
1 parent 6ce5436 commit aefa9f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web/src/scss/components/Tooltip/_Tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,12 @@
}

.Tooltip--dismissible {
--tooltip-max-width: calc(#{theme.$max-width} + #{theme.$gap} + #{theme.$close-button-size});

display: grid;
grid-template-columns: 1fr auto;
column-gap: theme.$gap;
align-items: center;
max-width: calc(#{theme.$max-width} + #{theme.$gap} + #{theme.$close-button-size});
}

@include dictionaries.generate-placements(
Expand Down

0 comments on commit aefa9f7

Please sign in to comment.