fix(material/slide-toggle): NVDA reading out clickable before label
Similar fix to #22446 for the slide toggle. Moves around the DOM in order to avoid the behavior where NVDA will read out "clickable" before the label, if the input parent has a click or mousedown listener. Includes the following changes:
- Moving the
inputout of the ripple target for the current slide toggle. The input is invisible so it doesn't really matter where we put it. - Using the
inputas the ripple target in the MDC slide toggle. Theinputcovers the entire container so the result is the same.
I'm seeing a screenshot in google that seems to show this broke strong focus indicators for the slide toggle
Pushed a fix for the strong focus indicators.
I can't reproduce the original issue here anymore. Closing.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.