bug(THEME): Using css var() in palette contrast is not applied on all components #28716
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
When I defined a theme like that
Buttons don't apply the
--primary-contrast
but some other components use itBadges apply it
Buttons don't apply it
--mdc-protected-button-label-text-color
should be--mdc-protected-button-label-text-color: var(--primary-contrast);
Reproduction
StackBlitz link: https://stackblitz.com/edit/components-issue-u6e7fj
Steps to reproduce:
Expected Behavior
Button contrast should work
Actual Behavior
Button contrast doesn't work
Environment
Package Version
@angular-devkit/architect 0.1702.1
@angular-devkit/build-angular 17.2.1
@angular-devkit/core 17.2.1
@angular-devkit/schematics 17.2.1
@angular/cdk 17.2.1
@angular/cli 17.2.1
@angular/material 17.2.1
@angular/material-moment-adapter 17.2.1
@schematics/angular 17.2.1
ng-packagr 17.2.0
rxjs 7.8.1
typescript 5.3.3
zone.js 0.14.4
The text was updated successfully, but these errors were encountered: