3 ms·
Really? Can you explain this a little more? If memory serves I use close/open check boxes that have labels with descriptive aria and IDs. Then toggling one hide
by asimpletune 4y ago
Really? Can you explain this a little more? If memory serves I use close/open check boxes that have labels with descriptive aria and IDs. Then toggling one hides itself and reveals the other.
- robin_reala 4y agoTypically you’d want to toggle aria-expanded to give more hints to users as to what’s actually happening. You also can’t trap focus into the menu purely with CSS, at a minimum you’ll need to use some JS to set an inert attribute. More info / examples here: https://adrianroselli.com/2023/03/css-only-widgets-are-inaccessible.html#Disclosures https://adrianroselli.com/2023/03/css-only-widgets-are-inacc...
- account42 4y agoYou can do that as progressive enhancement on top of the CSS-only checkbox solution though.