components icon indicating copy to clipboard operation
components copied to clipboard

fix(material/slide-toggle): NVDA reading out clickable before label

Open crisbeto opened this issue 4 years ago • 2 comments

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:

  1. Moving the input out of the ripple target for the current slide toggle. The input is invisible so it doesn't really matter where we put it.
  2. Using the input as the ripple target in the MDC slide toggle. The input covers the entire container so the result is the same.

crisbeto avatar Apr 10 '21 08:04 crisbeto

I'm seeing a screenshot in google that seems to show this broke strong focus indicators for the slide toggle

mmalerba avatar Apr 13 '21 16:04 mmalerba

Pushed a fix for the strong focus indicators.

crisbeto avatar Apr 13 '21 18:04 crisbeto

I can't reproduce the original issue here anymore. Closing.

crisbeto avatar Feb 28 '24 19:02 crisbeto

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.