I'm trying to get to the .dropdown::after
element but only if the first child has the attribute x-placement
set to bottom-start
.
<div class="dropdown js-dropdown">
<ul class="dropdown-menu js-dropdown-menu show" x-placement="bottom-start"
...
</ul>
<button class="btn dropdown-btn js-dropdown-btn">
Enter salutation...
</button>
::after
</div>
It seems to me that something like this should work, but unfortunately neither solution will work:
.js-dropdown [x-placement^=bottom] ~ ::after {
background: red;
}
.js-dropdown [x-placement^=bottom] + ::after {
background: red;
}
Is this even possible?
.js-dropdown [x-placement^=bottom] ~ ::after {
background: red;
}
.js-dropdown [x-placement^=bottom] + ::after {
background: red;
}