I've tried to change the bg color of the .navbar class when a child has [aria-expanded="true"] in (Bootstrap) Sass. This doesn't work (probably because the @extend cant reach out of the nested class). Anyone have an idea on how to best solve this? *i'm relatively new to this.
.navbar {
.navbar-toggler {
&[aria-expanded="true"] {
.navbar-toggler-icon {
background-image: url("#{$fo-font-path}/icon-black.svg");
transform: rotate(0deg);
}
@extend .navbar;
background-color: red;
}
}
}