-
Notifications
You must be signed in to change notification settings - Fork 219
Add the ability to change the background and text colors of the Mini Cart block "Start shopping" button. #8766
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: +12 B (0%) Total Size: 1.12 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.
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.
Oh, never mind. It's working now. Not sure what was happening. 😕
Changes LGTM so approving. However, I wonder if as a follow-up we should work on adding the option to change the style between 'Outline' and 'Default' as it's possible in Button blocks:
Otherwise, the border can't be removed and it looks a bit weird:
What do you think?
I just figured it out, I was testing with one theme but was editing the template part of another one. I should have opened the Mini Cart template part again after switching themes before making more edits. 😅 |
That makes sense, I'll add an issue for it. 👍 |
Start shopping
button
This PR adds the ability to add styles to the
Start shopping
button on the emptyMini cart
block.It is part of #8736, the
View my cart
andGo to checkout
buttons will be addressed on a separate PR.Testing
User-Facing Testing
Mini cart
block to the header template of your site.Site Editor
and edit theMini cart
template part.List view
and select theEmpty Mini Cart view
.Start shopping
button and check that you can change the background and text colors of the button.WooCommerce Visibility
Changelog