Open niutech opened 1 year ago
This is an interesting idea. Let me try different options and see how they do with accessibility. The only issue is that this is a CSS project, so there won't be any JS logic, just styling.
You don't need JS for tabs, see e.g. https://codepen.io/markcaron/pen/MvGRYV
I need to research the options. I know it is possible without JavaScript (I've done it before in different form and shapes), but the solution with checkboxes presents potential issues:
:has()
, but :has()
is not yet supported by many browsers.I'm not discarding the tabs at all, I think they will be a great addition to the library (and a possible one), just want to do it in a way that is supported, functional, and accessible. My suggestion of adding styles but not logic (so they look ok but they are not functional), feels like missing the mark.
Is it possible for you to add pure CSS tabs using ARIA roles e.g.:
?