Allow parent or current element trigger .dropdown-menu-dark variables

This commit is contained in:
Karl Shea 2024-05-15 17:59:03 -05:00
parent a5e1011e3a
commit 0e1ad5f4be
1 changed files with 3 additions and 1 deletions

View File

@ -232,7 +232,9 @@
}
// Dark dropdowns
.dropdown-menu-dark {
.dropdown-menu-dark,
[data-bs-theme="dark"] .dropdown-menu,
.dropdown-menu[data-bs-theme="dark"] {
// scss-docs-start dropdown-dark-css-vars
--#{$prefix}dropdown-color: #{$dropdown-dark-color};
--#{$prefix}dropdown-bg: #{$dropdown-dark-bg};