-
Notifications
You must be signed in to change notification settings - Fork 219
Stack cart and checkout buttons on smaller screens #9603
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: +1 B (0%) Total Size: 1.09 MB
ℹ️ View Unchanged
|
Hi @nefeline - just checking if you had a chance to take a look at 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.
Regarding:
👍 I would just recommend adding this note to #9557 as well for future reference.
Thanks for the ping, this PR was on my to-do list for today already: the last (but not least!) review before my AFK :) |
Fixes #9557
This PR removes a curious
display: none
on theView my cart
button and in addition, styles the buttons to stack on smaller screens.Note that I opted not to put
Checkout
beforeView my cart
button as in the suggested design because there is not clean way to make thetabbing
order to work well which would introduce an accessibility issue. For example changingorder
property on the two buttons in CSS would indeed visually work however tabbing would then be off. You would need to utilizetabindex
and have that change based on browser width via JS but in this case I don't think that is urgent.Accessibility
prefers-reduced-motion
Screenshots
Testing
User Facing Testing
Mini Cart
block.View my cart
andCheckout
buttons are visible and side by side.View my cart
andCheckout
buttons are visible and now stacked top and bottom.WooCommerce Visibility
Changelog