-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Lower z-index on "Show code" button #14074
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ndelangen so I am using portals, but they render at the bottom of the body within the iFrame, meaning the "Show code" button appears after it in the page's DOM, so that's not a solution. |
Right. I did a few tests and I can confirm that the actions can't be used in some scenarios without the add I tried changing the |
@MichaelArestad zIndex 0 solved my issue. Committed here so you can see the result in terms of Storybook (rather than just my Storybook usage). |
@kylemh Right. I tried that yesterday. You can see on the Docs/DocsPage story in the published storybook that the "Code" button is no longer clickable. |
Because this is breaking functionality and seems to be inactive, I'm going to close this PR. If you would like to try another iteration, I would be happy to reopen it. Thank you for contributing. |
Issue:
What I did
Removed set z-index from the div that wraps the "Show code" button in a story preview block. I don't wanna get into a fight with z-indeces anywhere - least of all within Storybook. My modals are rendered via portals which should be last in the DOM beating any z indeces; however, in Storybook, those portals are rendered within the preview block's iFrame, meaning they aren't rendered last.
Before
After
┆Issue is synchronized with this Asana task by Unito