Skip to content

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

Open
@Zwiqler94

Description

@Zwiqler94

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2The issue is important to a large percentage of users, with a workaroundfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions