-
Notifications
You must be signed in to change notification settings - Fork 367
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
refactor: [M3-6304] - MUI v5 Migration - ConditionalWrapper
#9002
refactor: [M3-6304] - MUI v5 Migration - ConditionalWrapper
#9002
Conversation
@@ -12,7 +10,7 @@ const useStyles = makeStyles()((theme: Theme) => ({ | |||
display: 'flex', | |||
alignItems: 'flex-start', | |||
cursor: 'pointer', | |||
padding: theme.spacing(1) + theme.spacing(0.5), |
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.
This was probably left over from MUI v4. theme.spacing()
use to return a number
, now it returns a string
so this line actually caused string concatenation which is not what we want. This might result in some minor UI changes, but this restores the original intention.
@@ -48,7 +46,7 @@ const useStyles = makeStyles()((theme: Theme) => ({ | |||
}, | |||
}, | |||
left: { | |||
left: -(theme.spacing(1) + theme.spacing(0.5)), |
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.
Same as other comment. string concatenation here was probably not intended
Passing run #2984 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
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 Docs button appears to have drifted a few pixels to the left, but this LGTM otherwise
Description 📝
<ConditionalWrapper />
because it was a bit extra and only consumed onceHow to test 🧪