0
0
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:
Julien Déramond 2024-10-29 16:21:47 +01:00
parent c2a7d686de
commit e34813fe8f
No known key found for this signature in database
GPG Key ID: DCD226672FC08F31

View File

@ -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