Pattern shuffle: The shuffle button is displayed when there is only a single pattern in a category #63902
Closed
2 tasks done
Labels
[Feature] Patterns
A collection of blocks that can be synced (previously reusable blocks) or unsynced
[Type] Bug
An existing feature does not function as intended
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
Screenshots, screen recording, code snippet
shuffle-single.mp4
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: