▲ | atomicfiredoll 6 days ago | |||||||||||||||||||||||||
Okay, but are those radio tabs accessible? I think that if you want to follow WAI-ARIA practices, the aria-selected, tabindex and aria-controls need to be updated via JS when the active tab changes? I'd love to be wrong about that. Accessibility is often an afterthought. And, sometimes there's an assumption that by working with HTML/CSS directly, accessibility comes built in. Just Something to keep in mind when choosing an approach. | ||||||||||||||||||||||||||
▲ | rebane2001 6 days ago | parent | next [-] | |||||||||||||||||||||||||
I think so? I am aware that people who read the blog might base parts of their websites on my examples, so I definitely want to make sure they're accessible as to not cause a negative ripple effect on the web. I don't have a background in accessibility, but I try to do the best I can. I try out what I make with various accessibility tools (e.g. keyboard navigation, screenreaders), and also read up on how things should be handled. For the radio tabs specifically - they are keyboard navigable, work with screenreaders, and follow the tabbing to content practice mentioned in the WAI-ARIA example[0]. [0] https://www.w3.org/WAI/ARIA/apg/patterns/tabs/examples/tabs-... | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
▲ | Rapzid 3 days ago | parent | prev | next [-] | |||||||||||||||||||||||||
I don't know about those radio tabs specifically, but your intuition is correct. Many of the ARIA APG (component)patterns require JavaScript to update tab index and ARIA properties for full implementation. Focus management and key-control are two problem spaces that are common across many patterns and require JavaScript. Focus management: Focus scopes and restoring focus requires JavaScript. Complex UI components like combo box, grids, and trees require dynamically adjusting tab index and focus. Combo Box requires managing accessibility tree focus separately from DOM focus. Modals implementing focus scopes and restoring focus scopes requires JavaScript. Key controls: The ARIA APG patterns call for differences in tab and arrow key control from what the browser would supply. Patterns that involve list of groups use tab to navigate between groups and arrows to navigate within groups. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
▲ | 5 days ago | parent | prev | next [-] | |||||||||||||||||||||||||
[deleted] | ||||||||||||||||||||||||||
▲ | japanuspus 6 days ago | parent | prev | next [-] | |||||||||||||||||||||||||
Did you read the article? The author specifically addresses accessibility in multiple places, including taking extra steps to work around browser bugs [0]. [0]: https://lyra.horse/blog/2025/08/you-dont-need-js/#fn:10 | ||||||||||||||||||||||||||
▲ | zipy124 5 days ago | parent | prev [-] | |||||||||||||||||||||||||
Given how un-accesible this blog post is (the contrast is quite a crime against humanity, as someone who does web dev for a dsiability charity (well communcity interest company but similar)), I wouldn't go to this for a source on this. | ||||||||||||||||||||||||||
|