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

Activity

added
featureThis issue represents a new feature or feature request rather than a bug or bug fix
needs triageThis issue needs to be triaged by the team
on May 9, 2025
added
P2The issue is important to a large percentage of users, with a workaround
and removed
needs triageThis issue needs to be triaged by the team
on May 14, 2025
added 2 commits that reference this issue on May 14, 2025
50e7869
3a1b98c
linked a pull request that will close this issue on May 20, 2025
added a commit that references this issue on May 22, 2025
8327351
added a commit that references this issue on Jun 2, 2025
b55f868
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      feat(mat-card): add title-text-color to card-overrides · Issue #31080 · angular/components