Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Details Block: When opening one block others close? #55483

Closed
webd-uk opened this issue Oct 19, 2023 · 2 comments
Closed

Details Block: When opening one block others close? #55483

webd-uk opened this issue Oct 19, 2023 · 2 comments
Labels
[Block] Details Affects the Details Block - used to display content which can be shown/hidden

Comments

@webd-uk
Copy link

webd-uk commented Oct 19, 2023

What problem does this address?

As in the editor when you edit the content of a Details Block, can there be an option to close all other Details Blocks on the front end when you open a Details Block?

What is your proposed solution?

An option in the block settings under "Open by default" such as "Close others when opened".

@colorful-tones colorful-tones added the [Block] Details Affects the Details Block - used to display content which can be shown/hidden label Oct 19, 2023
@colorful-tones
Copy link
Member

Hi @webd-uk
I think this feature enhancement for the Details block would make it behave like an Accordion, which is a different use case and implementation altogether.

Here is an open issue around the Accordion block proposal #21584

@webd-uk
Copy link
Author

webd-uk commented Oct 19, 2023

Hmm ... I'll close this issue and move over to that proposal. Although I would say that by definition, an Accordion Block is just a group of Details Blocks that perform together. And ... the new Twenty Twenty-Four theme uses these blocks exactly like that in the "FAQ" home page panel. Only they don't close when another is opened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Details Affects the Details Block - used to display content which can be shown/hidden
Projects
None yet
Development

No branches or pull requests

2 participants