-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
[Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsyncedA collection of blocks that can be synced (previously reusable blocks) or unsynced[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
The pattern shuffle button allows users to cycle through patterns in the same category. However, if there is only a single pattern in a category (admittedly this might be a rare occurrence), the shuffle button is still displayed. When clicked, there are no additional patterns to cycle through, so the button does nothing. This happens in both Zoom out mode and at the block level.
Step-by-step reproduction instructions
- Create a new pattern category
- Add a pattern to this category
- Insert the pattern and see that the shuffle button is displayed, but it doesn't do anything
Screenshots, screen recording, code snippet
shuffle-single.mp4
Environment info
- WordPress 6.6
- Gutenberg trunk
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
- Yes
Metadata
Metadata
Assignees
Labels
[Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsyncedA collection of blocks that can be synced (previously reusable blocks) or unsynced[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended