angular / angular/components

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

オープン
#31,080 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る
feature P2
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

### 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](https://github.com/user-attachments/assets/8a2350af-acd3-40ea-ac6e-1e51fcaf49dc)

### 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](https://github.com/user-attachments/assets/248f6caa-0ebf-4e5d-9dbf-b4f2f1a4fbd4)

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

mat.card-overrides の定義と既存の subtitle-text-color エントリを見つけ、カードのタイトルスタイルがテーマトークンをどのように使用しているかを確認します。title-text-color を追加するか、共有の text-color オプションを追加するかは issue では未確定です。選択したオーバーライドによって、示されているユースケースでタイトルとサブタイトルの色が一致すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, scss
領域
design, frontend
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。