-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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(material/slide-toggle): fix m3 slide-toggle handle #28503
Conversation
@return (( | ||
unselected-handle-width: 16px, | ||
unselected-handle-height: 16px, | ||
selected-handle-width: 24px, |
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.
For my own curiosity: does the M3 slide toggle really have a differently-sized handle depending on the selected state? I would imagine that would cause it to jump around.
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.
Yep lol. It's not too bad because of the transition, but I definitely found it strange at first as well
https://m3.material.io/components/switch/specs#34f9a158-a2b3-4c15-841b-578978126788
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.
They even have a base state with 20px but from what I can tell, that state is not reachable
* create a custom-tokens function * set up theme mixins to create custom token values * create an m2 mat- tokens file * added a new namespace in _m3-tokens.scss * appended the new tokens to m2-tokens-from-theme
86f8997
to
3c087b8
Compare
3c087b8
to
4307786
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
No description provided.