Skip to content

Commit

Permalink
fix: adapt middleware, remove top positioning from top variant
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiashader committed Sep 6, 2024
1 parent f2622bd commit 1d6b005
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/components/tooltip/tooltip.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
:host {
display: inline-block;
position: fixed;
left: 0px;
top: 0px;
left: 0;
top: 0;
z-index: var(--theme-z-index-tooltip);

max-width: 18.25rem;
Expand Down Expand Up @@ -32,7 +32,7 @@
padding: 0.375rem 0.75rem 0.375rem 0.875rem;

box-shadow: var(--theme-shadow-4);

border-radius: inherit;
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/tooltip/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ export class Tooltip implements IxOverlayComponent {
if (placement.startsWith('top')) {
return {
left: numberToPixel(x),
top: numberToPixel(y),
};
}

Expand Down Expand Up @@ -177,6 +176,7 @@ export class Tooltip implements IxOverlayComponent {
}),
flip({
fallbackStrategy: 'initialPlacement',
fallbackAxisSideDirection: 'start',
padding: 10,
}),
hide(),
Expand Down

0 comments on commit 1d6b005

Please sign in to comment.