Skip to content

Commit

Permalink
fixup! fixup! Remove line between popover and arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
atmelmicro committed Sep 3, 2024
1 parent 65b72d3 commit 93b174e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/components/Popover/Popover.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,19 @@

// Arrows
.isRootAtTop > .arrow {
top: calc(100% - #{theme.$arrow-safe-rendering-overlap + theme.$arrow-gap});
top: calc(100% - #{theme.$arrow-gap});
}

.isRootAtBottom > .arrow {
bottom: calc(100% - #{theme.$arrow-safe-rendering-overlap + theme.$arrow-gap});
bottom: calc(100% - #{theme.$arrow-gap});
}

.isRootAtLeft > .arrow {
left: calc(100% - #{theme.$arrow-safe-rendering-overlap + theme.$arrow-gap});
left: calc(100% - #{theme.$arrow-gap});
}

.isRootAtRight > .arrow {
right: calc(100% - #{theme.$arrow-safe-rendering-overlap + theme.$arrow-gap});
right: calc(100% - #{theme.$arrow-gap});
}

// Side alignments: top
Expand Down
4 changes: 2 additions & 2 deletions src/components/Popover/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ $box-shadow: var(--rui-Popover__box-shadow);

$arrow-safe-rendering-overlap: 1px;
$arrow-gap: 1px;
$arrow-width: calc(1rem + #{$arrow-safe-rendering-overlap + $arrow-gap});
$arrow-height: calc(math.div($arrow-width, 2)); // 1.
$arrow-width: calc(1rem + #{$arrow-safe-rendering-overlap + ($arrow-gap * 2)});
$arrow-height: calc($arrow-width / 2); // 1.
$arrow-corner-offset: 0.75rem;

0 comments on commit 93b174e

Please sign in to comment.