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

feat: Encourage response font sizes #357

Merged
merged 2 commits into from
Nov 30, 2023
Merged

Conversation

VickyKoblinski
Copy link
Collaborator

@VickyKoblinski VickyKoblinski commented Nov 8, 2023

Comment on lines -69 to -78
breakpoints: {
values: {
lg: 1280,
md: 960,
mobile: 720,
sm: 720,
xl: 1280,
xs: 375,
},
},
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I removed this because apparently it was never working?? And design for E4S have been using MUIs standard breakpoints.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Huh, interesting 🤔

Do you know what was missing that caused these breakpoints to not "stick" at runtime?

@@ -169,10 +169,10 @@ export const components: ThemeOptions['components'] = {
},
MuiBreadcrumbs: {
styleOverrides: {
separator: {
separator: () => ({

Choose a reason for hiding this comment

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

If this doesn't depend on any theme parameters, does it still have to be a lambda?

? pxToNumber(fontSize as Px)
: fontSize;
}).reverse();
const sortedVariants = variants;

Choose a reason for hiding this comment

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

Can we get rid of this variable now that it's the same as variants? The name is now a little misleading.

src/_foundations/Typography/index.stories.tsx Show resolved Hide resolved
Comment on lines -69 to -78
breakpoints: {
values: {
lg: 1280,
md: 960,
mobile: 720,
sm: 720,
xl: 1280,
xs: 375,
},
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

Huh, interesting 🤔

Do you know what was missing that caused these breakpoints to not "stick" at runtime?

@jameslu-e4s jameslu-e4s merged commit 90f4acb into main Nov 30, 2023
@jameslu-e4s jameslu-e4s deleted the encourage-responsive-size-font branch November 30, 2023 23:10
Copy link

🎉 This PR is included in version 7.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants