-
Notifications
You must be signed in to change notification settings - Fork 219
Product Price: Fix alignment setting on the frontend #7795
Conversation
The release ZIP for this PR is accessible via:
|
Script Dependencies ReportThe
This comment was automatically generated by the |
TypeScript Errors ReportFiles with errors: 428 🎉 🎉 This PR does not introduce new TS errors. |
Size Change: -36 B (0%) Total Size: 972 kB
ℹ️ 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.
Works like a charm ✨!
✅ Confirmed the price alignments are working as expected both in the editor and on the published post.
✅ Confirmed the alignments can be set to left, center and right.
Left a few suggestions in the code.
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 addressing the feedback: I left a follow-up question, but LGTM !
}; | ||
|
||
if ( isFeaturePluginBuild() ) { |
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.
Out of curiosity: why are we removing the feature flag here? Was this part of a decision documented elsewhere?
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.
No idea why it was there in the first place. I have asked @Aljullu, but he didn't know either. It doesn't really make sense for it to be there as Text Alignment
is not an experimental feature. We have decided it's safe to just remove it.
Also that setting was broken on the frontend anyway 🤷♂️
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.
That makes sense: thanks for clarifying!
This PR fixes the alignment setting on the frontend for the Product Price product element.
Fixes #7778
Other Checks
Screenshots
Alignment set to
center
Testing
Automated Tests
User Facing Testing
WooCommerce Visibility
Changelog