angular / angular/components

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

Abierto
#31,176 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Accessibility area: theming P3
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 8 h
PR fusionados (30 d)
91

Descripción

### 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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

No se especifica ningún archivo ni prueba. Busca body-medium y body-small en las definiciones de tipografía predeterminadas y verifica después cómo están establecidas actualmente sus alturas de línea. Se considera terminado cuando body-medium usa 22px y body-small usa 18px, y las comprobaciones de tipografía relevantes pasan correctamente.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript
Área
accessibility, frontend
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.