angular / angular/components

bug(mdc-card): Negative margin on subtitle

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

説明

### Is this a regression?

- [ ] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

_No response_

### Description

The card subtitle has a negative margin, causing it to run into the card title

### Reproduction

https://stackblitz.com/edit/angular-wro35c-pjrlt2?file=src%2Fapp%2Fcard-subtitle-example.html

### Expected Behavior

Should look more spaced

### Actual Behavior

Shouldnt run into each other

### Environment

- Angular:
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):

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

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

調査の方向性

リンクされたStackBlitzの再現例、特に src/app/card-subtitle-example.html から始め、サブタイトルとタイトルが重なっていることを確認します。負のマージンを生成している Angular Material MDC のカードサブタイトルのスタイルを追跡します。サブタイトルとタイトルの間に視認できる間隔があり、再現例で両者が重なって表示されなくなれば完了です。

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

評価

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

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

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