bootswatch
bootswatch copied to clipboard
Quartz dropdown not on top on Chromium
Thank you for Bootswatch. Problem is that with Quartz the dropdown menu is not on top with Chromium 102.0.5005.115, but it is with Firefox 101.0.1, on Ubuntu 20.04. With other themes there is no problem and the menu is on top with Chromium.
Below is an example. It uses the Bootstrap 5 accordion example. I replaced the accordion header. Maybe there are more use cases.
`
<div class="accordion" id="accordionExample">
<div class="accordion-item">
<!-- new accordion header - start -->
<div class="row accordion-header" id="headingOne">
<div class="col text-end">
<!-- dropdown - start -->
<div class="btn-group dropstart text-end">
<a class="dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
Dropstart
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">Action</a></li>
<li><a class="dropdown-item" href="#">Action two</a></li>
<li><a class="dropdown-item" href="#">Action three</a></li>
</ul>
</div>
<!-- dropdown - end -->
</div>
</div>
<!-- new accordion header - end -->
<div id="collapseOne" class="accordion-collapse collapse" aria-labelledby="headingOne" data-bs-parent="#accordionExample">
<div class="accordion-body">
<strong>This is the first item's accordion body.</strong> It is shown by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the <code>.accordion-body</code>, though the transition does limit overflow.
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="headingTwo">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
Accordion Item #2
</button>
</h2>
<div id="collapseTwo" class="accordion-collapse collapse" aria-labelledby="headingTwo" data-bs-parent="#accordionExample">
<div class="accordion-body">
<strong>This is the second item's accordion body.</strong> It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the <code>.accordion-body</code>, though the transition does limit overflow.
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="headingThree">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
Accordion Item #3
</button>
</h2>
<div id="collapseThree" class="accordion-collapse collapse" aria-labelledby="headingThree" data-bs-parent="#accordionExample">
<div class="accordion-body">
<strong>This is the third item's accordion body.</strong> It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the <code>.accordion-body</code>, though the transition does limit overflow.
</div>
</div>
</div>
</div>
</div>
Hey @mybooc, this is caused by backdrop-filter
being applied to .accordion-item
in Quartz, creating a new stacking context.
A workaround for you could be something like:
.accordion-item:first-child {
position: relative;
z-index: 5;
}
Your workaround does the trick, thank you very much!