Skip to content

Commit

Permalink
Remove line between popover and arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
atmelmicro committed Aug 23, 2024
1 parent 94a4a36 commit 27e520b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 100%;
top: calc(100% - 1px);
}

.isRootAtBottom > .arrow {
bottom: 100%;
bottom: calc(100% - 1px);
}

.isRootAtLeft > .arrow {
left: 100%;
left: calc(100% - 1px);
}

.isRootAtRight > .arrow {
right: 100%;
right: calc(100% - 1px);
}

// Side alignments: top
Expand Down
3 changes: 2 additions & 1 deletion src/components/Popover/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ $color: var(--rui-Popover__color);
$background-color: var(--rui-Popover__background-color);
$box-shadow: var(--rui-Popover__box-shadow);

$arrow-width: 1rem;
// 1 rem (16px) + 2px (for insetting the arrow)
$arrow-width: 18px;
$arrow-height: math.div($arrow-width, 2); // 1.
$arrow-corner-offset: 0.75rem;

0 comments on commit 27e520b

Please sign in to comment.