Skip to content

Font color is no longer auto adjusted with Angular 20 #190

@dgerhardt

Description

@dgerhardt

👻 Brief Description

The text color is no longer auto adjusted, so components are no longer accessible when a dark background color is used.

🥞 Affected version

9.0.0 (Angular 20)

Reproduction

StackBlitz / reproduction repository link:

https://github.com/dgerhardt/angular-material-css-vars-ng-20-a11y

Steps to reproduce the behavior:

  1. Create a new project using Angular 20
  2. Set the primary color to #333333
  3. Add a MatButton with primary color to a component
  4. The text color of the button is black instead of white.

🚓 Expected behavior

The text color should auto adjust to ensure that there is always a high contrast. This was the case before Angular 20.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions