zlacker

[parent] [thread] 3 comments
1. Arnavi+(OP)[view] [source] 2020-11-29 02:36:59
Depends on what you mean by "dynamic". Some "do something when the user clicks"-style things can be done with CSS. The best example I know of that is https://git-send-email.io/
replies(1): >>err4nt+a61
2. err4nt+a61[view] [source] 2020-11-29 18:03:31
>>Arnavi+(OP)
Abusing HTML form inputs as a way to store application state in DOM is hostile to usability and accessibility - please don't do this for any sites humans need to use. HTML does have progressive disclosure elements built in with `<details>` and `<summary>` which work without JS (I was hoping the demo was showing that or something like it)
replies(1): >>Arnavi+8L1
◧◩
3. Arnavi+8L1[view] [source] [discussion] 2020-11-29 23:56:03
>>err4nt+a61
Those HTML elements are radio buttons being used to choose between options of OS, mail server, etc. Each radio button is associated with a label that contains the correct text. Selecting a radio button unambiguously makes a `display:none` element no longer be that.

What part of it do you think is bad for usability or accessibility?

replies(1): >>err4nt+PO4
◧◩◪
4. err4nt+PO4[view] [source] [discussion] 2020-12-01 01:01:07
>>Arnavi+8L1
Everything you just said - these form inputs aren't related to a form, and assistive technology won't have any clue about the clever CSS selector hacks and what their effects are.

If you want to build something that's nice for humans and machines, look up best practices for this sort of thing - plenty of information is widely available on how to build things in usable and accessible ways (and it's simpler to do it correctly than to use these 'hack'-like workarounds anyway!)

[go to top]