-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(Modal): remove z-index transition #4777
Conversation
Deploy preview for the-carbon-components ready! Built with commit 2a9f931 https://deploy-preview-4777--the-carbon-components.netlify.com |
Deploy preview for carbon-elements ready! Built with commit 2a9f931 |
Deploy preview for carbon-components-react ready! Built with commit 2a9f931 https://deploy-preview-4777--carbon-components-react.netlify.com |
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.
would you also need to remove the transition on L52?
@emyarod If you remove the transition from the Therefore my question is, can we have the |
@emyarod I pushed my proposal of the transitions with a permanent z-index: z('modal'); // 9000 I also noticed that the |
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.
Oh yeah that's weird. If dev is ok with the change then it looks good to design.
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.
yeah I don't think we need that z-index transition and I wasn't able to see a reason for it from the file history, so this looks good to me
Closes #4690
Removes z-index transition on Modal component preventing visual and performance issues (see #4690 for more information).
Is there a reason why the
z-index
of the Modal needs to be-1
when hidden? I needed to re-add the transition on one state to prevent the same visual bug to appear when closing the modal. As @sabov noted though, it'd be better ifz-index
wouldn't be transitioned at all.