v6.0.0
Breaking Changes
- Minimum required Angular version is now v17
- The following deprecated symbols are removed:
mat-css-color-and-contrastmixin, can be replaced bymat-css-color-and-contrast-primarychangeContrastColorThresholdPrimary()function, can be replaced bysetContrastColorThresholdPrimary()changeContrastColorThresholdAccent()function, can be replaced bysetContrastColorThresholdAccent()changeContrastColorThresholdWarn()function, can be replaced bysetContrastColorThresholdWarn()changeContrastColorThreshold()function, can be replaced bysetContrastColorThreshold()
MaterialCssVarsService's attributeisDarkThemecan now beundefined, which may cause TypeScript errors in rare cases
Deprecations
-
SCSS entry points prefixed by
angular-material-css-vars/src/lib/are deprecated, please use the single entrypoint or the entrypoints withoutsrc/libinstead. Example:@use "angular-material-css-vars/src/lib/main" as css-vars; // is deprecated now @use "angular-material-css-vars" as css-vars; // preferred syntax @use "angular-material-css-vars/main" as css-vars; // also works
Fixes
- Auto contrast algorithm was improved. There were edge cases where the previously used algorithm would not choose the color with the best contrast. You may see a different contrast color in your applications.
#000000is now used as a contrast color instead ofrgba(0, 0, 0, 0.87), as it leads to better contrast.