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
Conversation
@mui/material-next: parsed: +0.88% , gzip: +0.67% |
Signed-off-by: Marija Najdova <mnajdova@gmail.com>
@@ -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)/)); |
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.
(keys[0] === 'motion' && !!keys[1]?.match(/(create|getAutoHeightDuration)/)); |
The function will be skipped by default, no need to put them here.
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.
Ah, I didn't know that, alright then I will just not add the motion
key anywhere :)
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.
👍 LGTM. Left a final suggestion.
Signed-off-by: Marija Najdova <mnajdova@gmail.com>
Signed-off-by: Marija Najdova <mnajdova@gmail.com>
Reference - https://m3.material.io/styles/motion/easing-and-duration/tokens-specs