-
-
Notifications
You must be signed in to change notification settings - Fork 32.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
[Fab] added z-index to fab component #30615
Conversation
We generally don't hardcode z-index values greater than 1 anywhere. For such cases, the |
But I agree that value of 1050 makes much more sense. As for if that won't break anything I don't see why it should, but I'm still fairly new to this project, so my opinion should hold little value here. |
@@ -52,6 +52,7 @@ const FabRoot = styled(ButtonBase, { | |||
minWidth: 0, | |||
width: 56, | |||
height: 56, | |||
zIndex: 1050, |
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.
The value should not be hardcoded. A new field called fab
should be created in packages\mui-material\src\styles\zIndex.js and then used similarly to other zIndex values.
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.
I see. Will update that later.
I would say that it would be a fix. Adding a new value in the theme sounds great 👍 |
Closing in favor of #30842 Thank you for the work :) |
As discussed in this issue added
z-index
toFab
component in order to keep it above other elements withz-index
likeBadge
which hasz-index: 1
.