angular / angular/components

bug(typography): body-medium and body-small line heights are not accessible

オープン
#31,176 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
Accessibility area: theming P3
主要言語
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

To meet criterion 1.4.12 of WCAG 2.1 https://www.w3.org/WAI/WCAG21/Understanding/text-spacing.html body-medium and body-small type should have higher line heights

Current body-medium line height: 20px
Accessible body-medium line height for the same font size: 22px

Current body-small line height: 16px
Accessible body-small line height for the same font size: 18px

### Expected Behavior

Accessible line heights for default typography

### Actual Behavior

Inaccessible line heights for body-medium and body-small typography

### Environment

- Angular: 18
- Material: 3
- Browser(s): Any
- Operating System (e.g. Windows, macOS, Ubuntu): Any

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

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

調査の方向性

ファイル名もテスト名も指定されていません。デフォルトのタイポグラフィ定義で body-medium と body-small を検索し、それぞれの現在の行の高さがどのように設定されているかを確認します。body-medium が 22px、body-small が 18px を使用し、関連するタイポグラフィチェックが通れば完了です。

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

評価

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

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

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