-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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/core): add missing system variables #29624
Conversation
} | ||
} | ||
|
||
@mixin system-level-shape($theme, $overrides: (), $prefix: $_system-level-prefix) { | ||
@mixin system-level-shape($theme: (), $overrides: (), $prefix: $_system-level-prefix) { |
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.
Why are we adding a default here? I'd be a bit concerned about apps depending doing @include mat.system-level-shape()
.
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 feel like requiring a theme
config makes it seem like it does something here, but its ignored in the mixin since our themes dont actually allow this to be configured.
That said, Im not strongly opinionated about making this optional - we can leave it the way it is
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 see, the theme only has an effect in the color and typography mixins. In that case it's fine by me.
} | ||
} | ||
|
||
@mixin system-level-shape($theme, $overrides: (), $prefix: $_system-level-prefix) { | ||
@mixin system-level-shape($theme: (), $overrides: (), $prefix: $_system-level-prefix) { |
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 see, the theme only has an effect in the color and typography mixins. In that case it's fine by me.
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. |
theme
(color, typography, and density) and adds support for defaults and simplified arguments (this is an experimental private API, and still under design and implementation)