Why does the Accordion remove Accordion.Content
from the DOM?
#3244
Unanswered
JeffBeltran
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We noticed that our FAQ content was not being rendered in the DOM when the accordion was collapsed, and we’re concerned about potential SEO implications. Upon reviewing the W3 ARIA accordion example, it seems removing the content from the DOM isn’t an accessibility requirement. In fact, the example provided by W3C simply hides the content using CSS. Additionally, I noticed that libraries like Headless UI also follow this CSS-based approach.
Could you clarify the rationale behind this implementation in Radix UI? Are there specific considerations (e.g., performance, accessibility) that led to this decision? If SEO or accessibility might be impacted, are there recommended workarounds for ensuring hidden content is still discoverable by search engines?
Beta Was this translation helpful? Give feedback.
All reactions