Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Zwiqler94 opened this issue May 9, 2025 · 0 comments
Open

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

Zwiqler94 opened this issue May 9, 2025 · 0 comments
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix P2 The issue is important to a large percentage of users, with a workaround

Comments

@Zwiqler94
Copy link

Zwiqler94 commented May 9, 2025

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 Zwiqler94 added feature This issue represents a new feature or feature request rather than a bug or bug fix needs triage This issue needs to be triaged by the team labels May 9, 2025
@andrewseguin andrewseguin added P2 The issue is important to a large percentage of users, with a workaround and removed needs triage This issue needs to be triaged by the team labels May 14, 2025
pmpak added a commit to pmpak/components that referenced this issue May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix P2 The issue is important to a large percentage of users, with a workaround
Projects
None yet
Development

No branches or pull requests

2 participants