Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(material/theming): Add 'base' theming dimension to all components#27924

Merged
mmalerba merged 1 commit intoangular:mainfrom
mmalerba:all-your-base
Oct 11, 2023
Merged

feat(material/theming): Add 'base' theming dimension to all components#27924
mmalerba merged 1 commit intoangular:mainfrom
mmalerba:all-your-base

Conversation

@mmalerba
Copy link
Contributor

Adds a base theming dimension to go along with color,typography, and density. The base dimension includes styles such as border-radiuses that do not vary with the chosen color, typography, or density, but may vary depending on the theming system (e.g. Material 2 vs Material 3).

BREAKING CHANGE:
There are new styles emitted by mat.<component>-theme that are not emitted by any of: mat.<component>-color, mat.<component>-typography, or mat.<component>-density. If you rely on the partial mixins only and don't call mat.<component>-theme, you can add mat.<component>-base to get the missing styles. Alternatively you can call mat.all-component-bases to get just the base styles for all components.

@mmalerba mmalerba added the target: major This PR is targeted for the next major release label Oct 10, 2023
@angular-robot angular-robot bot added the detected: breaking change PR contains a commit with a breaking change label Oct 10, 2023
@mmalerba mmalerba changed the title material(theming): Add 'base' theming dimension to all components feat(material/theming): Add 'base' theming dimension to all components Oct 10, 2023
Adds a `base` theming dimension to go along with `color`,`typography`,
and `density`. The base dimension includes styles such as
border-radiuses that do not vary with the chosen color, typography, or density,
but may vary depending on the theming system (e.g. Material 2 vs Material 3).

BREAKING CHANGE:
There are new styles emitted by `mat.<component>-theme` that are not emitted by
any of: `mat.<component>-color`, `mat.<component>-typography`, or
`mat.<component>-density`. If you rely on the partial mixins only and don't call
`mat.<component>-theme`, you can add `mat.<component>-base` to get the missing
styles. Alternatively you can call `mat.all-component-bases` to get just the
base styles for all components.
@mmalerba mmalerba added the action: merge The PR is ready for merge by the caretaker label Oct 10, 2023
@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Oct 10, 2023
@mmalerba mmalerba merged commit 7be5dde into angular:main Oct 11, 2023
@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 Nov 11, 2023
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 detected: breaking change PR contains a commit with a breaking change detected: feature PR contains a feature commit 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