-
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
fix: Billing Contact UI Regression from by MUI Update #9667
fix: Billing Contact UI Regression from by MUI Update #9667
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.
thx!
@@ -140,7 +139,7 @@ const ContactInformation = (props: Props) => { | |||
state || | |||
zip || | |||
country) && ( | |||
<Box sx={sxBox}> | |||
<Grid sx={sxGrid}> |
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.
Now that's it's a Grid I don't think you need the extra CSS here. You can most likely remove sxGrid
sx all together
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.
Sadly, that did not work 😖
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.
Adding m={0} at line 133 would also solves the issue and consistent with other boxes without having additional padding to subelements.
Also, you can completely lift sxGrid styles.
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.
We could do that, but do we really want to override MUI's Grid rules? Also, lifting lift sxGrid
/sxBox
styles still breaks some UI
Description 📝
http://localhost:3000/account/billing
)The Fix 🔨
<Grid>
to be a child of<Grid container>
rather than a<Box>
so it can correctly apply Grid stylesPreview 📷
How to test 🧪
http://localhost:3000/account/billing
and check the alignment and responsiveness of the Billing Contact section