-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(material-experimental/mdc-radio): switch to new theming API #23640
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
Conversation
Internal tests look good, except that the disabled color seems really faint. Can you double check that the disabled state color matches spec? |
.mdc-radio { | ||
// MDC theme styles also include structural styles so we have to include the theme at least | ||
// once here. The values will be overwritten by our own theme file afterwards. | ||
@include mdc-radio-theme.theme-styles(mdc-radio-theme.$light-theme); |
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.
Should we turn off fallback values going forward, and just tell the theming system to slot the variables?
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.
This is the mixin that slots the variables. I'd rather keep the fallbacks for now and we can have a separate PR that turns them off for all the components using the new API.
Reworks the MDC-based radio button to use the new theming API based on CSS variables. Also fixes a minor issue where the high contrast styles were emitting slightly more CSS than they need to.
5f9855a
to
9787132
Compare
I've pushed a fix for the disabled color issue. |
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.
Tests pass, LGTM
closed in favor of #23725 (which is identical code but changes commit type from |
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. |
Reworks the MDC-based radio button to use the new theming API based on CSS variables.
Also fixes a minor issue where the high contrast styles were emitting slightly more CSS than they need to.