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

Implement extend-theme functions for each component & overhaul override mixins to match behavior #29275

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

mmalerba
Copy link
Contributor

No description provided.

@mmalerba mmalerba added the target: minor This PR is targeted for the next minor release label Jun 17, 2024
@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Jun 17, 2024
src/material/core/tokens/_token-utils.scss Outdated Show resolved Hide resolved
src/material/core/tokens/_token-utils.scss Outdated Show resolved Hide resolved
@mmalerba mmalerba changed the title feat(material/theming): extend-theme sass function feat(material/theming): Add <component>-extend-theme sass functions Jun 18, 2024
@mmalerba mmalerba force-pushed the extend-theme branch 3 times, most recently from b6e4fba to 7ce26a8 Compare June 28, 2024 00:16
@mmalerba mmalerba added the merge: preserve commits When the PR is merged, a rebase and merge should be performed label Jun 28, 2024
@mmalerba mmalerba changed the title feat(material/theming): Add <component>-extend-theme sass functions Implement extend-theme functions for each component & overhaul override mixins to match behavior Jun 28, 2024
@mmalerba mmalerba added target: major This PR is targeted for the next major release and removed target: minor This PR is targeted for the next minor release labels Jun 28, 2024
@mmalerba mmalerba force-pushed the extend-theme branch 5 times, most recently from d450944 to 76e337a Compare June 30, 2024 05:12
@mmalerba mmalerba added this to the 19.0.0 milestone Jun 30, 2024
@mmalerba mmalerba marked this pull request as ready for review June 30, 2024 05:21
@mmalerba mmalerba requested a review from a team as a code owner June 30, 2024 05:21
@mmalerba mmalerba requested review from crisbeto and amysorto and removed request for a team June 30, 2024 05:21
@mmalerba mmalerba added the action: merge The PR is ready for merge by the caretaker label Jul 2, 2024
@mmalerba mmalerba force-pushed the extend-theme branch 2 times, most recently from 361cb9b to cc82e87 Compare July 2, 2024 21:17
wagnermaciel and others added 7 commits July 3, 2024 14:01
Initial commit, adds shared logic for appling overrides without
validation of the given tokens.
Adds validation to the shared extend-theme logic along with tests to
verify its behavior.
Adds the individual extend-theme functions for each component that
delegate to the shared logic.
…nctions

Adds a test to validate that the individual extend-theme functions do
not have issues with unhandled overlapping short token names, and fixes
issues that were uncovered.
…ions

Avoids token name collisions between namespaces by assigning string
prefixes to token in namespaces that would otherwise have a collision
…ponent>-extend-theme

Adds the same handling of ambiugously named tokens for the
<component>-overrides mixins that exists in the <component>-extend-theme
functions. Also adds similar validation logic and tests to verify this
behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker detected: feature PR contains a feature commit merge: preserve commits When the PR is merged, a rebase and merge should be performed target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants