-
Notifications
You must be signed in to change notification settings - Fork 219
Reorganise Columns controls and fix undefined problem in Product Collection settings #11937
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: +4.32 kB (0%) Total Size: 1.61 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.
Thanks for quickly making these changes & also fixing the undefined issue I reported. I tested the changes & everything is working as expected.
I just left a minor suggestion, but pre-approving the PR 🚀 🚢
Sidenote: Playwright tests are failing.
hasValue={ () => | ||
defaultLayout?.shrinkColumns !== shrinkColumns | ||
defaultLayout?.columns !== columns || | ||
defaultLayout?.type !== type |
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.
I don't think the "defaultLayout?.type !== type" condition is necessary. In my view, "defaultLayout?.columns !== columns" should suffice. no?
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.
Good catch, I applied your suggestion!
What
Improvements to Column controls in Product Collection:
undefined
option that occurred in Product Collection's Inspector Controls settingsFixes #11561
Fixes #11925
Why
Testing Instructions
Please consider any edge cases this change may have, and also other areas of the product this may impact.
undefined
entry, but "Columns" and "Responsive" like in the AFTER image:WooCommerce Visibility
Required:
Checklist
Required:
[type]
label or a[skip-changelog]
label.Conditional:
[skip-changelog]
label is not present).Changelog