-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Backporting block supports [border, color, elements, spacing] from Gutenberg to WP 6.1 #3204
Backporting block supports [border, color, elements, spacing] from Gutenberg to WP 6.1 #3204
Conversation
1614ef8
to
c20ddd2
Compare
c20ddd2
to
569db97
Compare
Rebased, now that #3199 has landed. |
Unit tests are failing -- apparently because of extra whitespace in the "expected" string. Errors look like this:
|
A similar issue seems to be present over at #3237 (comment) |
I'll rebase and fix. Sorry, was out of action last week. |
569db97
to
ec6ea9d
Compare
…ons. The Style Engine does not prettify by default.
7b8a48c
to
9a01f76
Compare
@ockham Good to go I think. |
wp_style_engine_get_styles( | ||
$link_block_styles, | ||
array( | ||
'selector' => ".$class_name a", | ||
'context' => 'block-supports', | ||
) | ||
); |
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.
Don't we have to do something with the return value? 🤔
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.
Ah, looks like this needs #3273 in order for the relevant styling to be added!
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.
Don't we have to do something with the return value? 🤔
Not here since the style engine will register styles in a store using the context as key. Gutenberg fetches stored styles at render time and prints them out.
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. We might want to land #3273 first and rebase this PR (see #3204 (comment)).
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 handling this PR @ramonjd Just one minor suggestion 🙂
better consistency for `since` mentions. Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com>
better consistency for `since` mentions.
better consistency for `since` mentions.
better consistency for `since` mentions.
Better consistency for `since` mentions
Better consistency for `since` mentions
Better consistency for `since` mentions
Committed in https://core.trac.wordpress.org/changeset/54211 |
Thanks for all the help, folks! |
❗ BLOCKED by #3199Edit: #3199 has been merged.Backporting border, color, elements, spacing block supports changes from Gutenberg to WP 6.1
Typography is taken care of over in #3203
See tracking issue: WordPress/gutenberg#43440
Trac ticket: https://core.trac.wordpress.org/ticket/56467
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.