-
Notifications
You must be signed in to change notification settings - Fork 219
Product Gallery: Fix justification not saving correctly #11324
Conversation
The release ZIP for this PR is accessible via:
Script Dependencies ReportThere is no changed script dependency between this branch and trunk. This comment was automatically generated by the TypeScript Errors Report
🎉 🎉 This PR does not introduce new TS errors. |
Size Change: +58 B (0%) Total Size: 1.54 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @roykho,
Thanks for working on this!
The fix works well and allows for the justification setting to persist.
Would you mind sharing the process of debugging this? I'd like to understand the bug better.
Regarding the Orientation setting on the Row
- I believe that's just the standard UI for the Row
/Stack
blocks. I don't believe this can be removed.
What
Fixes #11104
This was a tricky one as I went down a rabbit hole :)
NOTE: While playing around with this, I realize the Orientation setting for the first inner block Row is not useful at all because that setting is dictated by the position of the thumbnails. So even if you explicitly set it to say "Vertical", after you change the thumbnails position, the Orientation can change. If we agree, I can open a separate issue to remove that setting from users (if possible).
Why
This PR fixes the issue where when you use the first
core/group
row/stack's justification settings, the settings does not persist after refreshing in the editor.Testing Instructions
Please consider any edge cases this change may have, and also other areas of the product this may impact.
WooCommerce Visibility
Required:
Checklist
Required:
[type]
label or a[skip-changelog]
label.Conditional:
[skip-changelog]
label is not present).Changelog