-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Design Tools: Add block instance elements color support for buttons and headings #5164
Design Tools: Add block instance elements color support for buttons and headings #5164
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.
Thanks for the PR! Left a couple comments below.
I suppose it's not worth adding a test for wp_render_elements_support_styles
given that it doesn't return anything significant.
Thanks for the review @tellthemachines 👍
I was in two minds about this, on one hand it would be good to confirm that elements styles are generated appropriately, on the other hand it's really just testing the style engine. Ultimately, my reasoning in omitting it was as you suggested, it doesn't really return anything of note. |
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.
LGTM!
Committed in r56604. |
This is a backport PR for WordPress 6.4 that includes the following PHP Gutenberg changes:
It also adds a couple of unit tests to cover the application of the
wp-elements-*
classname for buttons and headings.Trac ticket: https://core.trac.wordpress.org/ticket/59309
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.