This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
In the Cart block, there is no direct child with class
.wc-block-components-totals-wrapper
in.wc-block-cart__sidebar
. But there is in the Checkout block. So I think this is a leftover code somehow.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 can see
.wc-block-components-totals-wrapper
in both checkout and cart. This solution isn't bullet proof though because at a certain width, the browser will decide to wrap the input element and the button. The ideal solution would be to setflex-wrap: no-wrap
on the.wc-points-rewards-redeem-form
element but that needs to be done in the points and rewards app.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.
Yes, that is correct, but in the Cart is never a direct child of wc-block-cart__sidebar, like the selector here targets
>
. And it is a direct child in Checkout. That's why I think this could have been a common style at one point.Exactly, setting
flex-wrap: nowrap
on the.wc-points-rewards-redeem-form
fixes the issue if they always want to have them on the same line. With the current code,flex-wrap: wrap
they actually say, hey go on another line if there is not enough space. But they don't have any styling in place for this case, like vertically spacing the button and so on.We can actually open a ticket on their side.