Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix popover's arrow appearance #1936

Merged
merged 13 commits into from
Apr 26, 2023
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