-
Notifications
You must be signed in to change notification settings - Fork 219
style Mini Cart block as inline to remove the experimental features usage. #6002
Conversation
Size Change: -521 B (0%) Total Size: 863 kB
ℹ️ View Unchanged
|
I agree with the conclusion that Mini Cart Block is an element to be used within Layout/Container Blocks that should be responsible for positioning and spacing of elements, could be group, row, columns or some absolute/fixed layers. If one day Gutenberg added context aware control for align/justify-self for when parent container/block supports it this would make sense but the way it was now I like the proposed approach more. |
I agree with you!
Yes! They are already working on this! |
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 working on this!
LGTM 🚢
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.
Looks good to me as well. Good job!
As discussed in #5985 (comment), #5985 (review) and #5985 (comment), in this PR, I try to remove the usage of the experimental features:
inline-block
element.The pros: simpler codebase, simpler styling.
The cons: Lack of alignments (which can be provided by a
<Group>
or<Row>
block).My take: I prefer this approach. The button is an inline element by its nature. The Mini Cart button is also 'likely' to be put inside a row.
Testing
Automated Tests
Manual Testing
How to test the changes in this Pull Request:
User Facing Testing
These are steps for user testing (where "user" is someone interacting with this change that is not editing any code).