Skip to content

Commit

Permalink
fix(popover): arrow border thickness revisited (#1936)
Browse files Browse the repository at this point in the history
  • Loading branch information
MewenLeHo authored Apr 26, 2023
1 parent 1d36f7e commit 6ee9b0c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions scss/_popover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
}

&::after {
bottom: var(--#{$prefix}popover-border-width);
// stylelint-disable-next-line function-disallowed-list
bottom: calc(var(--#{$prefix}popover-border-width) * 1.5); // Boosted mod: instead of `var(--#{$prefix}popover-border-width)`
border-top-color: var(--#{$prefix}popover-bg);
}
}
Expand All @@ -99,7 +100,8 @@
}

&::after {
left: var(--#{$prefix}popover-border-width);
// stylelint-disable-next-line function-disallowed-list
left: calc(var(--#{$prefix}popover-border-width) * 1.5); // Boosted mod: instead of `var(--#{$prefix}popover-border-width)`
border-right-color: var(--#{$prefix}popover-bg);
}
}
Expand All @@ -122,7 +124,8 @@
}

&::after {
top: var(--#{$prefix}popover-border-width);
// stylelint-disable-next-line function-disallowed-list
top: calc(var(--#{$prefix}popover-border-width) * 1.5); // Boosted mod: instead of `var(--#{$prefix}popover-border-width)`
border-bottom-color: var(--#{$prefix}popover-bg);
}
}
Expand Down Expand Up @@ -158,7 +161,8 @@
}

&::after {
right: var(--#{$prefix}popover-border-width);
// stylelint-disable-next-line function-disallowed-list
right: calc(var(--#{$prefix}popover-border-width) * 1.5); // Boosted mod: instead of `var(--#{$prefix}popover-border-width)`
border-left-color: var(--#{$prefix}popover-bg);
}
}
Expand Down

0 comments on commit 6ee9b0c

Please sign in to comment.