-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update button styles to work with new markup #899
Conversation
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.
This was a tricky one to assess with the colors not working in the editor, but it seems to be behaving as described.
Thanks Jeff!
Yeah, it's a bit of a pain to test -- sorry about that! 😕 I'll be re-reviewing how the buttons preview in the editor with both this and #893 merged in, and make any further adjustments if needed there! |
cd14b2e
to
5917e60
Compare
Created a new issue to dig into the not-totally-there button preview in the editor: |
🎉 This PR is included in version 1.6.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
In Gutenberg 7.9, the button block was updated to remove the
.wp-block-button
container around each link, and add that class to the link itself instead. Unfortunately, the theme relied on that class structure to apply the button styles correctly; this PR updates the styles to work with the new button markup, as well as the old button markup.The custom colours are not being applied in the editor, even with this fix; #893 may fix this in part but I think I'll need to circle back and do a separate PR for the buttons to fine tune after that's merged. In the meantime, please disregard!
Closes #894 and #871.
How to test the changes in this Pull Request:
npm run build
.Other information: