bug(badge): Badge doesn't react to the browser font size
- 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
When you change the size of the font through the browser settings. The badges remain the same size.
Comparison images:
small

large

chrome option

### Reproduction
Steps to reproduce:
1. Go in the Chrome options
2. Search for "Font size"
3. Set to "Very small"
4. Go on https://material.angular.io/components/badge/overview
5. Now change to "Very large"
6. Compare again on the doc page
### Expected Behavior
I have a feeling the badges should follow the size of the font.
### Actual Behavior
Badges font remain unchanged between very small or very large font option.
### Environment
- Angular: 16.2.5
- CDK/Material: 16.2.5
- Browser(s): Chrome 116.0.5845.187
- Operating System (e.g. Windows, macOS, Ubuntu): macOS 13.5.2
Beitragsleitfaden
Rechercherichtung
Reproduziere das Problem zunächst in der Material-Badge-Übersicht unter material.angular.io/components/badge/overview, indem du in Chrome die Einstellung für die Schriftgröße verwendest und „Sehr klein“ mit „Sehr groß“ vergleichst. Fertig ist die Aufgabe, wenn Schriftart und Größe des Badges konsistent auf Änderungen der Browser-Schriftgröße reagieren und das Verhalten mit beiden Einstellungen überprüft wurde.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- accessibility, frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100