-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(material-experimental/mdc-tabs): switch to new theming API #23642
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
2111972
to
7f399e5
Compare
@mixin structural-styles { | ||
@include mdc-tab.without-ripple($query: mdc-helpers.$mat-base-styles-query); | ||
@include mdc-tab-indicator.core-styles($query: mdc-helpers.$mat-base-styles-query); | ||
|
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 mixin is somewhat small at the moment, but we'll need to add the theme-styles
mixins to it once MDC fixes them.
Switches the MDC-based tabs to the new theming API. Note that while this uses the new mixins which clean up some of our overrides, it doesn't get us there completely in regards to the new API. Currently MDC's tabs mixins output the token values directly, rather than generating CSS variables for them. That being said, this still makes it easier to switch to CSS variables once they're available. These changes also introduce a new `structural-styles` mixin in `tabs-common` which centralizes the various structural styles we include from MDC. Previously they were scattered across multiple files.
7f399e5
to
21ac749
Compare
Feedback has been addressed. |
Closed in favor of #23642, which has identical code but the commit type is changed 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. |
Switches the MDC-based tabs to the new theming API. Note that while this uses the new mixins which clean up some of our overrides, it doesn't get us there completely in regards to the new API. Currently MDC's tabs mixins output the token values directly, rather than generating CSS variables for them. That being said, this still makes it easier to switch to CSS variables once they're available.
These changes also introduce a new
structural-styles
mixin intabs-common
which centralizes the various structural styles we include from MDC. Previously they were scattered across multiple files.