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

[Material You] Add motion design tokens #35384

Merged
merged 6 commits into from Dec 13, 2022

Conversation

mnajdova
Copy link
Member

@mnajdova mnajdova commented Dec 7, 2022

@mui-bot
Copy link

mui-bot commented Dec 7, 2022

Messages
📖 Netlify deploy preview: https://deploy-preview-35384--material-ui.netlify.app/

@mui/material-next: parsed: +0.88% , gzip: +0.67%

Details of bundle changes

Generated by 🚫 dangerJS against ab6bf14

@mnajdova mnajdova marked this pull request as ready for review December 7, 2022 15:08
@mnajdova mnajdova requested a review from a team December 7, 2022 15:08
@mnajdova mnajdova added the customization: theme Centered around the theming features label Dec 7, 2022
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Dec 8, 2022
Signed-off-by: Marija Najdova <mnajdova@gmail.com>
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Dec 8, 2022
@@ -13,7 +13,8 @@ import defaultTheme from './defaultTheme';

const shouldSkipGeneratingVar = (keys: string[]) =>
!!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) ||
(keys[0] === 'palette' && !!keys[1]?.match(/(mode|contrastThreshold|tonalOffset)/));
(keys[0] === 'palette' && !!keys[1]?.match(/(mode|contrastThreshold|tonalOffset)/)) ||
(keys[0] === 'motion' && !!keys[1]?.match(/(create|getAutoHeightDuration)/));
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
(keys[0] === 'motion' && !!keys[1]?.match(/(create|getAutoHeightDuration)/));

The function will be skipped by default, no need to put them here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, I didn't know that, alright then I will just not add the motion key anywhere :)

Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

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

👍 LGTM. Left a final suggestion.

Signed-off-by: Marija Najdova <mnajdova@gmail.com>
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Dec 13, 2022
Signed-off-by: Marija Najdova <mnajdova@gmail.com>
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Dec 13, 2022
@mnajdova mnajdova merged commit f063900 into mui:master Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customization: theme Centered around the theming features design: material you
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants