-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove z-index on ActionBar #11502
remove z-index on ActionBar #11502
Conversation
@ndelangen @domyen can one of you take a look |
I can't guarantee this won't be added back in the future if it turns out it's required for storybook to work properly.. We can remove it now, since it's not needed, thanks for checking & the PR! 👏 Just a bit of advice (do with it as you wish): |
@ndelangen I dont think react-portal does anything to escape z-indexes? I believe it just attaches the portal div to the end of the body. |
@kendallgassner the fact you're rendering in the body means you're escaping all rendering stacks of the parent elements. |
I found a bug in the Actions addon where I can't click on the ActionBar without the z-index. This is probably why we added the z-index in the first place. @ndelangen can we revert this? |
PR open @domyen |
This is awesome |
Revert #11502: Remove z-index on ActionBar
A z-index was added to the action bar component in the following pr (#6759)
It looks like they added the z-index to make it work for the panel component but after removing the z-index and testing on storybook it looks like the z-index is not needed.

In my own code base I am using the doc's preview component to add my story examples in my documentation. When I am using the preview component to render a modal the actions bar appears above my modal. (due to the z-index)
^ you can see it appears above my background as well as on my modal.
Because the z-index is not necessary and will be a problem when working with popups I am proposing to remove it.