thomaspark / bootswatch

Themes for Bootstrap
https://bootswatch.com
MIT License
14.57k stars 3.67k forks source link

Quartz dropdown not on top on Chromium #1199

Closed mybooc closed 2 years ago

mybooc commented 2 years ago

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.

`

This is the first item's accordion body. 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 .accordion-body, though the transition does limit overflow.

This is the second item's accordion body. 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 .accordion-body, though the transition does limit overflow.

This is the third item's accordion body. 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 .accordion-body, though the transition does limit overflow.
thomaspark commented 2 years ago

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;
}
mybooc commented 2 years ago

Your workaround does the trick, thank you very much!