Skip to content

Commit df6facf

Browse files
committed
Alternate fix to #19006: Add a single variable for controlling that inner 1px padding on .popover
1 parent 2a36b4b commit df6facf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

scss/_popover.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
z-index: $zindex-popover;
66
display: block;
77
max-width: $popover-max-width;
8-
padding: 1px;
8+
padding: $popover-inner-padding;
99
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
1010
// So reset our font and text properties to avoid inheriting weird values.
1111
@include reset-text();

scss/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,7 @@ $tooltip-arrow-color: $tooltip-bg !default;
606606

607607
// Popovers
608608

609+
$popover-inner-padding: 1px !default;
609610
$popover-bg: #fff !default;
610611
$popover-max-width: 276px !default;
611612
$popover-border-width: $border-width !default;

0 commit comments

Comments
 (0)