Button text color adopts background color after upgrading to Angular Material 18 #29250
Closed
1 task
Labels
needs triage
This issue needs to be triaged by the team
Is this a regression?
The previous version in which this bug was not present was
No response
Description
After upgrading to Angular and Angular Material version 18.0.0, the button text color incorrectly takes on the button's background color, making the text unreadable. This issue did not exist in version 17.0.0.
Reproduction
StackBlitz link: https://stackblitz.com/edit/stackblitz-starters-xswcad?file=src%2Fcustom-theme.scss,src%2Fcolor.scss,src%2Fmain.ts,src%2Fglobal_styles.css
Steps to Reproduce:
Expected Behavior
The button text color should remain distinct from the background color as specified in the theme settings.
Actual Behavior
The button text color adopts the button's background color, making the text difficult to read.
Environment
The text was updated successfully, but these errors were encountered: