bug(slide-toggle): no remaining focus if clicked on non active toggle
- 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
if a non focused toggle is clicked, there is no remaining focus - bad if keyboard control is used afterwards.
However if the label is clicked instead, the remaining focus works.

### Reproduction
Steps to reproduce:
1. https://material.angular.io/components/slide-toggle/overview
2. click on not focused toggle vs click on not focused label
### Expected Behavior
remaining focus should appear on click on a non focused toggle
### Actual Behavior
no remaining focus on click on a not already focused toggle
### Environment
- Angular: 15.1.1
- CDK/Material: 15.1.1
- Browser(s): all
- Operating System (e.g. Windows, macOS, Ubuntu): all
Guía de contribución
Línea de trabajo
Reproduce el comportamiento en la URL de descripción general de slide-toggle comparando un clic en un toggle que no tiene el foco con un clic en su etiqueta. Rastrea la gestión del foco de slide-toggle y verifica que hacer clic en un toggle que no tiene el foco mantenga el foco de teclado visible, preservando al mismo tiempo el comportamiento existente de la etiqueta.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- accessibility, frontend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100