4 ms·
Last I checked that without JavaScript details / summary has accessibility issues. That is, you need JS to add aria-open or similar. It’s odd and frustrating t
by chiefalchemist 10mo ago
Last I checked that without JavaScript details / summary has accessibility issues. That is, you need JS to add aria-open or similar.
It’s odd and frustrating that such an essential tag is not defined to be accessible, afaik.
- asdfaoeu 10mo agoWhy would you need aria attributes if it's summary tag?
- chiefalchemist 10mo agoI presume it has to do with AT and how it typically interprets the tag. TBH IDK other than I’ve seen it come up in accessibility discussions / groups.
- extra88 10mo agoThat's not correct. There is no aria-open attribute and the summary implicitly has the correct ARIA state, aria-expanded, indicating that its details element is either expanded or collapsed. There have been bugs in its implementation, particularly in Safari and differing between mobile and desktop Safari.
- chiefalchemist 9mo agoPerhaps you’re right. What I mentioned might have been an issue that has since fade due to browser and AT updates. Thanks for correcting me.