Skip to content

bug(toolbar): wrong text color of a button with a color in a toolbar #26192

Closed
@romainmoreau

Description

@romainmoreau

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

14 and 15.0.0

Description

With this change, it causes another regression versus v14 when it's the buttons inside the toolbar that have a color; now in v15, the text of the buttons doesn't use the specified color.

Reproduction

https://stackblitz.com/edit/toolbar-colored-buttons-15?file=src/app/app.component.html

Expected Behavior

Button text color to match button color

https://stackblitz.com/edit/toolbar-colored-buttons-14?file=src/app/app.component.html

Actual Behavior

Button text color is toolbar text color

https://stackblitz.com/edit/toolbar-colored-buttons-15?file=src/app/app.component.html

Environment

  • Angular: 15.0.2
  • CDK/Material: 15.0.1
  • Browser(s): Firefox
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/toolbar

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions