bug(material/slide-toggle): Animation duration in M3 should be 300ms
- 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
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
Guía de contribución
Línea de trabajo
Comienza con la reproducción vinculada de StackBlitz en src/main.ts y compara la animación de M3 slide-toggle con el comportamiento de Material Web switch. Sigue la implementación de Angular Material slide-toggle para identificar la duración de la animación de M3 y verifica que el comportamiento completado use una duración de 300ms sin la transición brusca.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100