Home | Notifications | New Note | Local | Federated | Search | Logout

Note Detail


Soblow Xaselgio :dragn_heart:@Soblow@eldritch.cafe (2026-08-25 17:50:31)
Web accessibility question:
I have a checkbox on my website, on top of most of the visible page, which allows switching between light and dark theme (using CSS shenanigans).
I wonder if I should add an ARIA tag to it, to help with screenreaders and similar technologies.

It has an accessibility role, because it allows switching between light and dark themes.
However, there is no point in showing this checkbox in PDF/epub exports, nor to read it aloud with screenreaders.

From what I read, using the aria-hidden attribute is a bad idea, because it hides it totally from assistive technologies.
I also read about the presentation=none "role", but I'm not sure of the consequences of using this tag.

Any opinion from fedizens? :dragn_heart:
:boosts_ok:
Reply