debois / elm-mdl

Elm-port of the Material Design Lite CSS/JS library
Apache License 2.0
965 stars 133 forks source link

Toggles don't trigger `is-focused` class on focus #373

Open tzemanovic opened 6 years ago

tzemanovic commented 6 years ago

The issue can be seen on the Toggle demo page:

https://debois.github.io/elm-mdl/#toggles

When you inspect the elements and set focus on them with tab key, none of the Toggle types get applied is-focused class, so the focus is not visible.

There's a related issue upstream: https://github.com/google/material-design-lite/issues/5105, but the JS problem mentioned there obviously doesn't apply to this library, though the CSS problem does propage here.