-
Notifications
You must be signed in to change notification settings - Fork 6.8k
refactor(material/table): switch to tokens API #27192
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
eeee16b
to
0cbc94e
Compare
c3bed15
to
361d616
Compare
@@ -71,12 +71,21 @@ $_component-prefix: null; | |||
|
|||
// Emits a slot for the given token, provided that it has a non-null value in the token map passed | |||
// to `use-tokens`. | |||
@mixin create-token-slot($property, $token) { | |||
@mixin create-token-slot($property, $token, $emit-fallback: false) { |
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 comment that having emit-fallback = true
would be for temporary workarounds?
mdc-data-table-theme.$stroke-color: rgba(mdc-theme-color.prop-value(on-surface), 0.12); | ||
|
||
@include mdc-data-table.table-styles($query: mdc-helpers.$mdc-theme-styles-query); | ||
@mixin _output-tokens { |
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.
I think you can use this function instead: https://github.com/angular/components/blob/main/src/material/core/style/_sass-utils.scss#L11
Also, I'm not sure we need to clean it up, I'd like to move toward emitting the tokens under the user's selector (or document root if they don't specify one)
Reworks the Material table to use the new tokens API.
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 Material table to use the new tokens API.