-
Notifications
You must be signed in to change notification settings - Fork 2
Add Accordion block example using bento-accordion
#10
Comments
Curious how this compares to a simple details/summary element usage like Coocks uses |
It's true that the functionality is not nearly as advanced as is included in
CoBlocks has this curious toggle for IE support: |
IE11 doesn't support |
Yeah, what I mean is it's strange to me that this is presented as a user option. |
Interesting to see whatwg/html#6466 where browsers will automatically expand |
This just came to mind again. If we're to add more block examples, I was thinking that this repo could be turned into a monorepo containing all sorts of resources for using Bento with Gutenberg, i.e. block examples, links to docs/blog posts/tutorials. Similar to https://github.com/WordPress/gutenberg-examples and https://github.com/dseidl/awesome-gutenberg |
I am advocating for this here: whatwg/html#6040 |
amp-accordion
bento-accordion
There's a Gutenberg issue open to add an Accordion block: WordPress/gutenberg#21584
Requirements (from WordPress/gutenberg#21584 (comment)) for the frontend JS for this block include:
These are all satisfied by Bento
amp-accordion
(the first with ampproject/amphtml#20609).Similarly in WordPress/gutenberg#21584 (comment):
So with the Bento
amp-accordion
there's a React component to be used in the editor context, and then a Custom Element to be used on the frontend, both of which are optimized for their respective use cases.This would be another useful example to show how
amp-accordion
would be an elegant way to implement the Accordion block in Gutenberg.The text was updated successfully, but these errors were encountered: