bug(slide-toggle): no remaining focus if clicked on non active toggle
- 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
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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Reproduisez le comportement à l’URL de présentation de slide-toggle en comparant un clic sur un toggle qui n’a pas le focus avec un clic sur son label. Suivez la gestion du focus de slide-toggle et vérifiez qu’un clic sur un toggle qui n’a pas le focus conserve le focus clavier visible, tout en préservant le comportement existant du label.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- accessibility, frontend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100