bug(material/slide-toggle): Animation duration in M3 should be 300ms
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
### 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
The Slide toggle animation with an M3 theme uses the same duration and timing function as the M2 slide toggle. For the M3 switch this looks jarring and unfitting.
### Reproduction
StackBlitz link: https://stackblitz.com/edit/stackblitz-starters-andwku?file=src%2Fmain.ts
Steps to reproduce:
1. Look at the toggle animation
2. Compare with the toggle animation used in Material Web: https://material-web.dev/components/switch/stories/
### Expected Behavior
The slide toggle animation should not be jarring when using an M3 theme.
### Actual Behavior
The slide toggle animation uses the short animation duration from M2 and appears jarring.
### Environment
- Angular: 17.3.5
- CDK/Material: 17.3.5
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la reproduction StackBlitz liée dans src/main.ts et comparez l’animation M3 slide-toggle avec le comportement de Material Web switch. Suivez l’implémentation de Angular Material slide-toggle pour identifier la durée de l’animation M3 et vérifiez que le comportement final utilise une durée de 300ms sans la transition saccadée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- frontend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100