bug(typography): body-medium and body-small line heights are not accessible
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
### 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
Beitragsleitfaden
Rechercherichtung
Es wird keine Datei und kein Test genannt. Durchsuche die Standarddefinitionen der Typografie nach body-medium und body-small und überprüfe anschließend, wie ihre aktuellen Zeilenhöhen festgelegt sind. Als erledigt gilt die Aufgabe, wenn body-medium 22px und body-small 18px verwendet und die relevanten Typografieprüfungen erfolgreich sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- accessibility, frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100