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: allow custom previews to be supplied #28135

Open
johngodley opened this issue Jan 12, 2021 · 0 comments
Open

Patterns: allow custom previews to be supplied #28135

johngodley opened this issue Jan 12, 2021 · 0 comments
Labels
[Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Type] Enhancement A suggestion for improvement.

Comments

@johngodley
Copy link
Contributor

Patterns are available in the block inserter, and are shown as a preview of the pattern:

image

For some patterns this preview may be too bulky, or noisy, to give a good experience. Here's a big pattern that takes up too much space, and a small pattern that is hard to see (ignoring that Github shows it zoomed):

image

A nice enhancement would be if a pattern could support a custom preview or example, much like blocks do. This would also allow for more abstract representations of patterns that may not be easily identifiable.

image

As the pattern list uses the BlockPreview component then supplying it with a different set of HTML data should be possible.

@johngodley johngodley added [Type] Enhancement A suggestion for improvement. [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced labels Jan 12, 2021
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
None yet
Development

No branches or pull requests

1 participant