components icon indicating copy to clipboard operation
components copied to clipboard

feat(mat-card): add title-text-color to card-overrides

Open Zwiqler94 opened this issue 6 months ago • 0 comments
trafficstars

Feature Description

It doesn't exactly make sense to allow subtitle-text-color in the override but not title...

Wouldn't we want the title to match the rest of the custom M3 theming?

I'd like to propose adding title-text-color: color to the mat.card-overrides

you end up with something like this otherwise:

Image

Use Case

 @include mat.card-overrides((
      title-text-color: var(--mat-sys-on-secondary),
      subtitle-text-color: var(--mat-sys-on-secondary),
      outlined-container-color: var(--mat-sys-secondary),
   ));

maybe even just a color option:

 @include mat.card-overrides((
      text-color: var(--mat-sys-on-secondary),
      outlined-container-color: var(--mat-sys-secondary),
   ));

so that it all matches like this:

Image

Zwiqler94 avatar May 09 '25 19:05 Zwiqler94