Skip to content

Commit

Permalink
fix: issue with tooltip not centered in with all parent elements (#3399)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget authored Nov 5, 2024
1 parent eae31d0 commit 7941ab5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/components/src/components/tooltip/tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ $tooltip-arrow-shadow-size: variables.$db-sizing-2xs;
--default-card-border-radius: #{variables.$db-border-radius-xs};

@extend %db-overwrite-font-size-sm;
@extend %popover-center;
@extend %default-popover;

background-color: colors.$db-adaptive-bg-basic-level-1-default;
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/styles/_popover-component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ $popover-gap-size: var(--db-popover-distance);
$popover-inset: calc(100% + #{$popover-gap-size} * var(--db-popover-gap, 0));
$popover-gap-inset: calc(-1 * #{$popover-gap-size});

// use this for popover but not for tooltip
%popover-center {
&:not([data-placement]),
&[data-placement="bottom"]:not([data-outside-vy]),
Expand Down

0 comments on commit 7941ab5

Please sign in to comment.