mirror of
https://github.com/twbs/bootstrap.git
synced 2025-03-13 13:29:25 +01:00
Enhance popover arrow rendering when popover has a header
This commit is contained in:
parent
c2a7d686de
commit
e34813fe8f
@ -119,6 +119,12 @@
|
||||
top: var(--#{$prefix}popover-border-width);
|
||||
border-bottom-color: var(--#{$prefix}popover-bg);
|
||||
}
|
||||
|
||||
// `:has` is not yet supported by our `.browserlistrc` but since it adds an extra layer of specificity,
|
||||
// it doesn't hurt the browsers that don't support it.
|
||||
&:has(+ .popover-header)::after {
|
||||
--#{$prefix}popover-bg: var(--#{$prefix}popover-header-bg);
|
||||
}
|
||||
}
|
||||
|
||||
// This will remove the popover-header's border just below the arrow
|
||||
|
Loading…
x
Reference in New Issue
Block a user