Angular Material Radio button - Ripple effect persists until clicking away.
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
### Which @angular/* package(s) are the source of the bug?
Don't known / other
### Is this a regression?
Yes
### Description
Clicking on a radio button now persists the ripple effect. This issue seems to have appeared since Angular 11 and still exists in Angular 12. This bug can be seen in angular material documentation.
Angular 10. No persistent ripple.
https://v10.material.angular.io/components/radio/overview
Angular 11. Persistent ripple issue which clears after clicking somewhere on the screen
https://v11.material.angular.io/components/radio/overview
Although not perfect I've added the following css to hide the bug as a workaround.
`
.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple {
opacity: 0;
}
`
I couldn't find a ticket regarding this issue so thought it's worth raising one.
### Please provide a link to a minimal reproduction of the bug
https://v11.material.angular.io/components/radio/overview
### Please provide the exception or error you saw
_No response_
### Please provide the environment you discovered this bug in
_No response_
### Anything else?
_No response_
Guía de contribución
Línea de trabajo
Comienza con los ejemplos de radio de Angular Material enlazados en el issue y compara el comportamiento de Angular 10 y Angular 11 para aislar la regresión. Reproduce el ripple persistente después de seleccionar un botón de radio y verifica que se borre sin requerir un clic en otra parte, también en el ejemplo de la documentación.
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