Skip to content

v6.0.0

Compare
Choose a tag to compare
@json-derulo json-derulo released this 08 Nov 16:32
· 47 commits to master since this release

Breaking Changes

  • Minimum required Angular version is now v17
  • The following deprecated symbols are removed:
    • mat-css-color-and-contrast mixin, can be replaced by mat-css-color-and-contrast-primary
    • changeContrastColorThresholdPrimary() function, can be replaced by setContrastColorThresholdPrimary()
    • changeContrastColorThresholdAccent() function, can be replaced by setContrastColorThresholdAccent()
    • changeContrastColorThresholdWarn() function, can be replaced by setContrastColorThresholdWarn()
    • changeContrastColorThreshold() function, can be replaced by setContrastColorThreshold()
  • MaterialCssVarsService's attribute isDarkTheme can now be undefined, 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 without src/lib instead. 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.
  • #000000 is now used as a contrast color instead of rgba(0, 0, 0, 0.87), as it leads to better contrast.