Skip to content

Collapsible and Accordion primitives to use details and summary tags #3439

Open
@yoonthegoon

Description

@yoonthegoon

Feature request

Overview

  • I'd like to see collapsible and accordion make use of the details and summaries tags.
  • At the very least, accordion should not use h3 in its trigger.

Who does this impact? Who is this for?

  • Users with JavaScript disabled would still be able to view content.
  • Better use of semantic HTML for more accessibility.

Additional context

MDN Glossary - Accessible description

Here's a quick thing I was able to pull together:

Screen.Recording.2025-04-01.at.19.12.12.mov

It's not perfect, but it's good enough to prove that those tags can be styled.

Relevant issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions