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

Patterns: Add descriptions to user-created patterns #55244

Closed
carolinan opened this issue Oct 11, 2023 · 7 comments
Closed

Patterns: Add descriptions to user-created patterns #55244

carolinan opened this issue Oct 11, 2023 · 7 comments
Assignees
Labels
[Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Type] Enhancement A suggestion for improvement.

Comments

@carolinan
Copy link
Contributor

What problem does this address?

Pattern descriptions add important information for any user who is not able to see the blocks that are included in a pattern, or any user who needs the information in a different format than the preview.

There is no way for a user to add a description to user-created patterns.

What is your proposed solution?

Perhaps the excerpt field could be re-purposed as a description for this post type.

@carolinan carolinan added [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced labels Oct 11, 2023
@richtabor
Copy link
Member

I agree this could be nice, especially as patterns keep evolving.

Something like this:

patterns-inspector

@jordesign jordesign added the [Type] Enhancement A suggestion for improvement. label Oct 11, 2023
@jordesign jordesign changed the title Add descriptions to user-created patterns Patterns: Add descriptions to user-created patterns Oct 11, 2023
@richtabor richtabor removed the [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). label Dec 14, 2023
@richtabor
Copy link
Member

@youknowriad how would you see this best reconciling for patterns, related to the ongoing consolidation efforts in #57049

@youknowriad
Copy link
Contributor

I'm going to be working on the excerpt field soon to show it similarly in site and post editors. If the post type supports excerpts then it will show up.

@youknowriad
Copy link
Contributor

This PR #57096 adds the excerpt panel to the site editor. So if we enable excerpt support for wp_block post type as a follow-up, the panel will show up.

@richtabor
Copy link
Member

So if we enable excerpt support for wp_block post type as a follow-up, the panel will show up.

@carolinan do you mind taking that? 🙇

@carolinan carolinan self-assigned this Apr 8, 2024
@carolinan
Copy link
Contributor Author

Adding the excerpt support is easy enough, but I found a bug with the Site Editor Pattern screen. There is a regression where there is no way for a screen-reader to actually read out the description to the user, no matter if "grid" or "list" is selected.

@richtabor
Copy link
Member

Noting that this is supported now. The UI could be much better (it's not quite discoverable).

CleanShot 2024-04-25 at 12 54 02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Type] Enhancement A suggestion for improvement.
Projects
Status: Done
Status: Done
Development

No branches or pull requests

4 participants