logoalt Hacker News

chiefalchemisttoday at 11:25 AM2 repliesview on HN

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.


Replies

extra88today at 6:19 PM

That'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.

asdfaoeutoday at 11:35 AM

Why would you need aria attributes if it's summary tag?

show 1 reply