17.0.0
版本发布时间: 2023-11-08 21:14:31
angular/components最新发布版本:19.0.0-rc.0(2024-10-31 22:21:49)
17.0.0 "deferred-diamond" (2023-11-08)
cdk
material
material-experimental
multiple
Breaking Changes
material
- There are new styles emitted by
mat.<component>-theme
that are not emitted by any of:mat.<component>-color
,mat.<component>-typography
, ormat.<component>-density
. If you rely on the partial mixins only and don't callmat.<component>-theme
, you can addmat.<component>-base
to get the missing styles. Alternatively you can callmat.all-component-bases
to get just the base styles for all components. - There are new styles emitted by mat.bottom-sheet-theme that are not emitted by any of: mat.bottom-sheet-color, mat.bottom-sheet-typography, mat.bottom-sheet-density. If you rely on the partial mixins only and don't call mat.bottom-sheet-theme, you can add mat.bottom-sheet-base to get the missing styles.
- There are new styles emitted by mat.button-toggle-theme that are not emitted by any of: mat.button-toggle-color, mat.button-toggle-typography, mat.button-toggle-density. If you rely on the partial mixins only and don't call mat.button-toggle-theme, you can add mat.button-toggle-base to get the missing styles.
- There are new styles emitted by
mat.fab-theme
that are not emitted by any of:mat.fab-color
,mat.fab-typography
,mat.fab-density
. If you rely on the partial mixins only and don't callmat.fab-theme
, you can addmat.fab-base
to get the missing styles. - There are new styles emitted by
mat.card-theme
that are not emitted by any of:mat.card-color
,mat.card-typography
,mat.card-density
. If you rely on the partial mixins only and don't callmat.card-theme
, you can addmat.card-base
to get the missing styles. - There are new styles emitted by
mat.checkbox-theme
that are not emitted by any of:mat.checkbox-color
,mat.checkbox-typography
,mat.checkbox-density
. If you rely on the partial mixins only and don't callmat.checkbox-theme
, you can addmat.checkbox-base
to get the missing styles. - There are new styles emitted by mat.chips-theme that are not emitted by any of: mat.chips-color, mat.chips-typography, mat.chips-density. If you rely on the partial mixins only and don't call mat.chips-theme, you can add mat.chips-base to get the missing styles.
-
NativeDateAdapter
no longer takesPlatform
in its constructor. It also now uses theinject
function, and therefore cannot be instantiated directly (must go through Angular's DI system instead). - There are new styles emitted by
mat.dialog-theme
that are not emitted by any of:mat.dialog-color
,mat.dialog-typography
,mat.dialog-density
. If you rely on the partial mixins only and don't callmat.dialog-theme
, you can addmat.dialog-base
to get the missing styles. - There are new styles emitted by
mat.list-theme
that are not emitted by any of:mat.list-color
,mat.list-typography
,mat.list-density
. If you rely on the partial mixins only and don't callmat.list-theme
, you can addmat.list-base
to get the missing styles. - There are new styles emitted by mat.menu-theme that are not emitted by any of: mat.menu-color, mat.menu-typography, mat.menu-density. If you rely on the partial mixins only and don't call mat.menu-theme, you can add mat.menu-base to get the missing styles.
- There are new styles emitted by mat.progress-bar-theme that are not emitted by any of: mat.progress-bar-color, mat.progress-bar-typography, mat.progress-bar-density. If you rely on the partial mixins only and don't call mat.progress-bar-theme, you can add mat.progress-bar-base to get the missing styles.
- There are new styles emitted by mat.progress-spinner-theme that are not emitted by any of: mat.progress-spinner-color, mat.progress-spinner-typography, mat.progress-spinner-density. If you rely on the partial mixins only and don't call mat.progress-spinner-theme, you can add mat.progress-spinner-base to get the missing styles.
- There are new styles emitted by
mat.radio-theme
that are not emitted by any of:mat.radio-color
,mat.radio-typography
,mat.radio-density
. If you rely on the partial mixins only and don't callmat.radio-theme
, you can addmat.radio-base
to get the missing styles. - There are new styles emitted by mat.sidenav-theme that are not emitted by any of: mat.sidenav-color, mat.sidenav-typography, mat.sidenav-density. If you rely on the partial mixins only and don't call mat.sidenav-theme, you can add mat.sidenav-base to get the missing styles.
- There are new styles emitted by mat.slide-toggle-theme that are not emitted by any of: mat.slide-toggle-color, mat.slide-toggle-typography, mat.slide-toggle-density. If you rely on the partial mixins only and don't call mat.slide-toggle-theme, you can add mat.slide-toggle-base to get the missing styles.
- There are new styles emitted by
mat.slider-theme
that are not emitted by any of:mat.slider-color
,mat.slider-typography
,mat.slider-density
. If you rely on the partial mixins only and don't callmat.slider-theme
, you can addmat.slider-base
to get the missing styles. - There are new styles emitted by
mat.snack-bar-theme
that are not emitted by any of:mat.snack-bar-color
,mat.snack-bar-typography
,mat.snack-bar-density
. If you rely on the partial mixins only and don't callmat.snack-bar-theme
, you can addmat.snack-bar-base
to get the missing styles. - There are new styles emitted by mat.table-theme that are not emitted by any of: mat.table-color, mat.table-typography, mat.table-density. If you rely on the partial mixins only and don't call mat.table-theme, you can add mat.table-base to get the missing styles.
- There are new styles emitted by mat.tabs-theme that are not emitted by any of: mat.tabs-color, mat.tabs-typography, mat.tabs-density. If you rely on the partial mixins only and don't call mat.tabs-theme, you can add mat.tabs-base to get the missing styles.
- There are new styles emitted by mat.tooltip-theme that are not emitted by any of: mat.tooltip-color, mat.tooltip-typography, mat.tooltip-density. If you rely on the partial mixins only and don't call mat.tooltip-theme, you can add mat.tooltip-base to get the missing styles.
multiple
-
@import
of Angular Material and Angular CDK Sass is no longer supported. Please use@use
instead. -
- Themes are now more strictly validated when calling Angular Material
theme mixins. For example, calling
mat.button-typography
with a theme hastypography: null
is now an error. - The
mat.legacy-typography-hierarchy
mixin has been removed in favor ofmat.typography-hierarchy
- Themes are now more strictly validated when calling Angular Material
theme mixins. For example, calling