Skip to content

Tracking: Stabilize Accordion Blocks #71732

Closed
21 of 21 issues completed
Closed

Description

@t-hamano

Resources:

Currently, the following four blocks are available only when experimental settings are enabled:

  • Accordion (core/accordion)
    • Accordion Item (core/accordion-item)
      • Accordion Heading (core/accordion-heading)
      • Accordion Panel (core/accordion-panel)

This issue lists the problems that need to be addressed in order for Accordion blocks to ship into core. If you have any thoughts on this issue itself or any tasks that need to be addressed, please feel free to comment.

cc @mikachan @MaggieCabrera @joedolson @ryanwelcher

Enable by default on the Gutenberg plugin

Currently, these blocks are only available if we enable the Experiments setting. My understanding is that enabling these blocks by default means we must fully guarantee backward compatibility.

I would like to minimize the burden of dealing with backward compatibility, so I propose evaluating and addressing the following points:

Ship to WP 6.9

This means removing "__experimental": true from blocks. We need to investigate and address any issues that need to be addressed before shipping this block to 6.9. #72036

Activity

  1. added
    [Type] Tracking IssueTactical breakdown of efforts across the codebase and/or tied to Overview issues.
    on Sep 18, 2025
  2. joedolson commented on Sep 19, 2025

    @joedolson
    Contributor

    Thanks for opening this, @t-hamano! I've added a handful of accessibility issues that I'd also consider important to resolve to add this to core.

  3. 11 remaining items

  4. t-hamano commented on Sep 29, 2025

    @t-hamano
    ContributorAuthor

    As the Accordion block is nearing stabilization, I would like to have one more discussion to finalize the block name. The current block names are as follows:

    • Accordion (core/accordion)
      • Accordion Content (core/accordion-content)
        • Accordion Header (core/accordion-header)
        • Accordion Panel (core/accordion-panel)
    Image

    Personally, I find the block name "Accordion Content" a bit strange.

    • I'm confused by the existence of multiple "Content" blocks within one Accordion Panel.
    • When I hear the word "content," I think of the blocks inside the Accordion Panel.

    This has probably been discussed somewhere before, but I prefer the block name "Accordion Item".

    cc @mikachan, @alexandrebuffet, @jasmussen, @LukaszJaro, @Jabe64, @Nyiriland, @hanneslsm, @MaggieCabrera

  5. hanneslsm commented on Sep 29, 2025

    @hanneslsm

    Good point @t-hamano

    I agree with you, "Accordion Content" sounds more like the Panel.
    "Accordion Item" is also a valid name; we also have list items as child blocks in a Lists. However, for me a Item is a singular thing… but the Accordion item does persist of two child blocks.
    It could also make sense to use "Accordion Group" here, what the initially overall "Accordion" was named.

    Another thing I've just realized: Shouldn't the Header be "Accordion Title"? Or at least "Accordion Heading"? We do have the Heading block, but "header" is usually the template part. Also, the placeholder text currently says "Accordion title"

    So we end up with

    - Accordion
      - Accordion Group or Accordion Item
       - Accordion Title or Accordion Heading
       - Accordion Panel
    

    I'm not native english, so I'm very happy if someone else also chimes in and even outweighs my opinion. :)

  6. Jabe64 commented on Sep 29, 2025

    @Jabe64

    +1 for Accordion Group but I'm not a native English speaker neither.

  7. joedolson commented on Sep 29, 2025

    @joedolson
    Contributor

    I'd give a +1 for Accordion Item. To me, Accordion Group sounds like a larger organizational structure.

    I don't have significant issues between Accordion Heading vs. Header; but since it contains a Heading, I think it does make sense to repeat the same terminology as the inner block.

    Regarding the placeholder: the name of the block should convey its structure, but the placeholder needs to be a hint about the content, so to me accordion title makes sense there.

  8. t-hamano commented on Sep 30, 2025

    @t-hamano
    ContributorAuthor
    - Accordion
      - Accordion Group or Accordion Item
       - Accordion Title or Accordion Heading
       - Accordion Panel
    

    I'm not a native English speaker either, but I get the impression that "Accordion Group" is a wrapper for "grouping" multiple Accordions, so I prefer the "Accordion Item" instead.

  9. hanneslsm commented on Sep 30, 2025

    @hanneslsm

    Looking at other CSS frameworks, I revoke the idea of "Accordion group" and also go with "Accordion Item".
    https://getbootstrap.com/docs/5.3/components/accordion/
    https://get.foundation/sites/docs/accordion.html
    https://primer.style/brand/components/RiverAccordion/
    https://carbondesignsystem.com/components/accordion/usage/

    So we end up with the following (Item and Heading):

    - Accordion
      - Accordion Item
       - Accordion Heading
       - Accordion Panel
    
  10. t-hamano commented on Sep 30, 2025

    @t-hamano
    ContributorAuthor

    So we end up with the following (Item and Heading):

    - Accordion
      - Accordion Item
       - Accordion Heading
       - Accordion Panel
    

    Okay, let's move forward with this.

  11. t-hamano commented on Oct 2, 2025

    @t-hamano
    ContributorAuthor

    Ready to stabilize: #72036

  12. moved this from 🏗️ In Progress to ✅ Done in WordPress 6.9 Editor Taskson Oct 3, 2025
  13. t-hamano commented on Oct 3, 2025

    @t-hamano
    ContributorAuthor

    The Accordion block is now stabilized and will ship in WP 6.9. Thanks to everyone who worked on this issue!

    For any open sub-issues, let's address them individually.

  14. mrleemon commented on Oct 30, 2025

    @mrleemon
    Contributor

    Just a question. Is there a way to change the toggle icon in the Accordion Heading block?

  15. t-hamano commented on Oct 30, 2025

    @t-hamano
    ContributorAuthor

    Is there a way to change the toggle icon in the Accordion Heading block?

    Currently, you cannot change the icon unless you add custom CSS. In the future, if the icon registration API is implemented, we may be able to incorporate some of that functionality into the accordion block as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] AccordionAffects the Accordion Block[Type] Tracking IssueTactical breakdown of efforts across the codebase and/or tied to Overview issues.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions