I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
The option that the switch controls, as well as the state it’s in, should be made clear from the corresponding inline label.
is indicative of the biggest problem with switches, which is that they're not obvious. I mean the contrast requirements in Material are good, but I see a lot of badly-implemented switches in the real world because designers were so heavily influenced by the early Apple ones which were really difficult to understand.
I generally think that if you need text to explain what state your icon is in then the icon is just decoration. A page full of switches does make for an attractive settings page, though.
This is all besides your point; I'm just emptying my brain here. Good post :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think the way the guidelines say
is indicative of the biggest problem with switches, which is that they're not obvious. I mean the contrast requirements in Material are good, but I see a lot of badly-implemented switches in the real world because designers were so heavily influenced by the early Apple ones which were really difficult to understand.
I generally think that if you need text to explain what state your icon is in then the icon is just decoration. A page full of switches does make for an attractive settings page, though.
This is all besides your point; I'm just emptying my brain here. Good post :)