Skip to content

Tutorial on building patterns and block styles with Details/Summary block #127

Closed

Description

@bph

Discussed in #104

Originally posted by justintadlock April 26, 2023
The Details/Summary block is still experimental, but I wanted to start playing around with some ideas on what this block could be used for and whether it's worth exploring as tutorial content.

The block would offer a browser-native way to build out features like an accordion (no JS needed). I could see this working well as a "create a pattern" tutorial and potentially even some use cases for custom block style variations or a combination of both.

Here's a really quick preview of using Details/Summary to build out an accordion (Edit: note that an "accordion" might not be the best option for a11y---needs research---just an example exploration):

details-summary-accordion.webm

Activity

  1. justintadlock commented on Nov 27, 2023

    @justintadlock
  2. moved this from To-do to In Progress in Developer Blog Content Boardon Nov 27, 2023
  3. moved this from In Progress to Needs 1st review in Developer Blog Content Boardon Nov 29, 2023
  4. justintadlock commented on Nov 29, 2023

    @justintadlock
  5. marybaum commented on Nov 29, 2023

    @marybaum
    Member

    On it!

  6. justintadlock commented on Nov 29, 2023

    @justintadlock

    Thanks, @marybaum. Maybe it all makes sense. I wrote this entire thing while hopped up on cough syrup. 🤧

  7. justintadlock commented on Nov 30, 2023

    @justintadlock

    It's really nice working with you again, @marybaum. I feel like you always have a good feel for what I'm trying to say but can somehow make it better. :)

    Should I move this to 2nd review status? I wasn't sure if you were through with the doc yet.

  8. marybaum commented on Nov 30, 2023

    @marybaum
    Member
  9. justintadlock commented on Nov 30, 2023

    @justintadlock

    No problem with timing. Use as much as you need.

  10. marybaum commented on Nov 30, 2023

    @marybaum
    Member

    Done!

  11. moved this from Needs 1st review to Needs 2nd review in Developer Blog Content Boardon Nov 30, 2023
  12. bph commented on Dec 1, 2023

    @bph
    CollaboratorAuthor

    2nd review on Google Docs done with minimal suggestions. Great fun indeed! I have an opinion for the first screenshot being too white and not showing the object more prominently:-)

    Just for convenience, here are the checklist to get the article published.

    Pre-publishing checklist:

    • Post Title in Sentence case
    • Use "Center Column" template
    • Are Category or Categories selected?
    • Are Tags identifies?
    • Is there an explicit Excerpt?
    • Do all images have an alt-text?
    • Assign or upload a featured image
    • Props added? (See Guidelines)
      🙌 Publish! 📗

    Post-publishing checklist

    • add Props for reviews to #props channel in WP Slack (Example) (use Slack handles)
    • add copy for a social post as comment to this issue (example)
    • close the issue with a comment to link to the published post
    • close the accompanying discussion with the link to the published post.
  13. moved this from Needs 2nd review to Ready to publish in Developer Blog Content Boardon Dec 1, 2023
  14. ndiego commented on Dec 1, 2023

    @ndiego
    Member

    I just read through it as well. Great article Justin. 💪

  15. justintadlock commented on Dec 1, 2023

    @justintadlock

    Published!

    Social copy:

    Learn how to take the Details block to the next level in your themes by adding custom styles, patterns, and more!

    https://developer.wordpress.org/news/2023/12/styles-patterns-and-more-with-the-details-block/

  16. moved this from Ready to publish to Published (Done) in Developer Blog Content Boardon Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions