Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Accordion z-index high #917

Open
Xerxes0198 opened this issue Sep 3, 2020 · 1 comment
Open

Accordion z-index high #917

Xerxes0198 opened this issue Sep 3, 2020 · 1 comment

Comments

@Xerxes0198
Copy link

I am experiencing an issue where the very high z-index of the accordion is coming through to elements which are rendered on top of them. For instance, a modal.

I was hoping someone could explain why the z-index was so high.

&:focus { z-index: 100; }

@wibily
Copy link

wibily commented Jan 18, 2021

It's probably inspired by having a z-index scale. Ie https://material-ui.com/customization/z-index/. By setting the z-index of the Modal component so high, you know that you'll definitely cover all the stuff with z-indexes under that whilst allowing you to have z-indexes of 100+ for stuff you want on top of the Modal. If it wasn't so high, then it'll be easy to forget what the z-index of the Modal was and have things accidentally appear above it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants