Skip to content
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: MUI Theme Base CSS Styles #9636

Merged

Conversation

bnussman-akamai
Copy link
Member

Description 📝

  • Oh no! Our MUI theme isn't installed correctly! 😖
  • The background color of the body is white ⚪️ in dark mode and it drives me absolutely nuts 🌰

Major Changes 🔄

  • Set missing UI theme styles
  • Add <CssBaseline /> to mount base styles

Preview 📷

Before ☹️

Screen.Recording.2023-09-05.at.9.31.14.PM.mov

After 😁

Screen.Recording.2023-09-05.at.9.30.37.PM.mov

How to test 🧪

  • Checkout this PR
  • Check that the body's background in light mode is white
  • Check that the body's background is in dark mode is gray
  • Check for general style regressions

@bnussman-akamai bnussman-akamai added the UX/UI Changes for UI/UX to review label Sep 6, 2023
@bnussman-akamai bnussman-akamai self-assigned this Sep 6, 2023
@bnussman-akamai bnussman-akamai changed the title fix: MUI Theme - Base CSS Styles fix: MUI Theme Base CSS Styles Sep 6, 2023
@@ -42,6 +42,7 @@ const useStyles = makeStyles<void, 'linkItem'>()(
color: '#fff',
display: 'flex',
fontFamily: 'LatoWebBold', // we keep this bold at all times
fontSize: '1rem',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes fontSize regression

@@ -14,6 +14,7 @@ interface Props {
const useStyles = makeStyles()((theme: Theme) => ({
container: {
backgroundColor: theme.bg.main,
fontSize: '1rem',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes fontSize regression

Copy link
Contributor

@cpathipa cpathipa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TY @bnussman-akamai for fixing this.

@cpathipa cpathipa added the Add'tl Approval Needed Waiting on another approval! label Sep 6, 2023
Copy link
Contributor

@abailly-akamai abailly-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this!

This is a PR that needs far more visual testing before approving (CC @cpathipa). We really need to pull the code and test in the browser until we have visual regression tools. I tested quickly and found regressions right away so I suspect there could be more.

Screenshot 2023-09-06 at 16 19 53

Screenshot 2023-09-06 at 16 18 50

@bnussman-akamai
Copy link
Member Author

@abailly-akamai

  1. First regression was fixed by merging develop in (fix: Billing Summary UI Regression from MUI Update #9622)
  2. Second screenshot is fixed by 990e8a1

@mjac0bs
Copy link
Contributor

mjac0bs commented Sep 6, 2023

Tbh, I can't see a different in font size in Alban's screenshot that 990e8a1 fixed and thought that table arrow was pointing to the typo in "Transferred". It looked wrong spelled as is, so I googled it. Two "r"s. (I'm sorry 😅 )

Edit: Ah. On second glance, I see the font size issue.

@bnussman-akamai
Copy link
Member Author

Wait I'm confused... @abailly-akamai, what is the first screenschot suppose to show?

@abailly-akamai
Copy link
Contributor

@bnussman-akamai 🤣 the grid cells were misaligned

@bnussman-akamai
Copy link
Member Author

Ah okay, my fault. Should be good then! (#9622)

Copy link
Contributor

@abailly-akamai abailly-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fixes! Looks good - went through most flows and couldn't find aby other visual regressions 👍

@bnussman-akamai bnussman-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Sep 7, 2023
@bnussman-akamai bnussman-akamai merged commit fc4ad08 into linode:develop Sep 7, 2023
@cpathipa
Copy link
Contributor

cpathipa commented Sep 7, 2023

Thanks for working on this!

This is a PR that needs far more visual testing before approving (CC @cpathipa). We really need to pull the code and test in the browser until we have visual regression tools. I tested quickly and found regressions right away so I suspect there could be more.

Screenshot 2023-09-06 at 16 19 53

Screenshot 2023-09-06 at 16 18 50

Good catch! @abailly-akamai This is the standard practice I follow of running the code locally for every PR review. The first screenshot regression was not introduced with this PR, and I might have missed the font size of the tables at first glance (0.875rem vs 1rem) as I might mainly focused on background theme color.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge! UX/UI Changes for UI/UX to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants