feat(Slider): The Slider component should be able to properly display values with four or more digits
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
### Feature Description
The [Slider component](https://material.angular.dev/components/slider/overview) cannot display values with four or more digits properly in the thumb label.
The issue can be quickly seen by sliding one of the example sliders in the documentation all the way up:
At four digits, the text already overflows the container. A year looks even worse:
While the custom thumb label formatting feature slightly helps with this, the limit for a slider that looks decent is just three-digit values.
Looking at [Material Design sliders](https://m3.material.io/components/sliders/overview), I can see that the thumb label is much wider, and it's easy to imagine it expanding horizontally to accomodate more text:
The design of the Angular Material slider actually resembles the older M2 design with the smaller label:
### Use Case
This will enable the slider to be used for a lot of common use cases like selecting a date range.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con il componente Slider e gli slider di esempio nella documentazione collegata nell’issue, riproducendo l’overflow con valori a quattro cifre e un anno. Confronta il comportamento di thumb-label con il riferimento degli slider di Material Design; il lavoro è completato quando i valori più lunghi vengono visualizzati correttamente senza overflow e gli esempi documentati rimangono utilizzabili.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- design, frontend
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 55/100