Skip to content
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

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

andrewseguin
Copy link
Contributor

  • Adds variable definitions for palette variables directly referenced by the sidenav (neutral-variant20) and form field (neutral10). These are the only spots where references are made outside of the normal system values.
  • Only emit defined system variables in 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)

@andrewseguin andrewseguin requested a review from a team as a code owner August 22, 2024 12:52
@andrewseguin andrewseguin requested review from crisbeto, amysorto and wagnermaciel and removed request for a team August 22, 2024 12:52
}
}

@mixin system-level-shape($theme, $overrides: (), $prefix: $_system-level-prefix) {
@mixin system-level-shape($theme: (), $overrides: (), $prefix: $_system-level-prefix) {
Copy link
Member

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().

Copy link
Contributor Author

@andrewseguin andrewseguin Aug 22, 2024

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

Copy link
Member

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) {
Copy link
Member

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.

@andrewseguin andrewseguin added action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release labels Aug 23, 2024
@andrewseguin andrewseguin requested review from amysorto and removed request for wagnermaciel and amysorto August 23, 2024 13:16
@andrewseguin andrewseguin merged commit fcb76d3 into angular:main Aug 23, 2024
25 checks passed
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants