Post #2062649
2023-05-23 13:46 UTC
Hello! I have an #a11y question. I have been trying to think which would be the right markup for this light/dark theme switch. My initial reaction was to make two buttons but with this visual affordance, I'm not sure what kind of behavior would be expected. I was thinking of working on it as a group of two radio elements but I really can't stay for sure. I'd appreciate any input about this topic. Thanks! :)
Replies (2)
-
@patrick_h_lauke@mastodon.social 2023-05-23 13:52
@ItsCrisDiaz@mastodon.social radio buttons would be my choice here. with "Tema" as the
-
@mikemai2awesome@mastodon.social 2023-05-23 13:52
@ItsCrisDiaz@mastodon.social buttons are still preferred, but if you were to use input, it can be a single checkbox with role=switch attribute.