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

Don't show group block's placeholder when there is only one variation available #62239

Closed
costasovo opened this issue Jun 3, 2024 · 0 comments · Fixed by #61871
Closed

Don't show group block's placeholder when there is only one variation available #62239

costasovo opened this issue Jun 3, 2024 · 0 comments · Fixed by #61871
Labels
[Block] Group Affects the Group Block (and row, stack and grid variants) [Type] Enhancement A suggestion for improvement.

Comments

@costasovo
Copy link
Contributor

What problem does this address?

When someone limits a group block's variations so that there is only one left. The block still shows a placeholder and asks a user to pick a variation. The placeholder step could be skipped and the only variation could be used directly.

The real-world use-case is the email editor, where we are not able to support Flex or Grid because these are not supported by email clients.

Screen Capture on 2024-05-22 at 16-50-25

What is your proposed solution?

The block could select the single variation automatically and skip the placeholder step.

Screen Capture on 2024-05-22 at 16-52-43

There is a PR that adds this behavior #61871.

@costasovo costasovo added the [Type] Enhancement A suggestion for improvement. label Jun 3, 2024
@jordesign jordesign added the [Block] Group Affects the Group Block (and row, stack and grid variants) label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Group Affects the Group Block (and row, stack and grid variants) [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants