-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Rendering duotone presets in pattern preview #41249
Conversation
c81ada0
to
4e90f5f
Compare
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.
Just a couple minor things. This is looking great!
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.
Looking good! Give it a rebase/merge to see if that fixes the failing tests—they don't look related to the changes here
26993bf
to
2e0f098
Compare
I found the problem that is causing the test failures. It is related to the import of this component
For that reason, I'm considering moving the definition of the |
4a5c288
to
9e8e632
Compare
@matiasbenedetto This change would be making the API public, and I want to make sure the API is a little more friendly before we do that. I'm planning on changing the API for For now can we export them as I think |
Thanks for the context!
Yep, done.
Good, I deleted the additions to the docs. By the way, the docs are not autogenerated but there is a check before commit that fails if the docs are not there. Despite I exported the components as
This component is also used in
Done! |
c85e1fd
to
db3d248
Compare
Updated with the latest changes from #39564 |
What?
Fixing duotone rendering in the pattern selection panel.
Why?
This is necessary to make the pattern preview accurate.
How?
In this PR we render the duotone svg filters default and theme filter inside the pattern preview iframe.
Previously we were rendering just the custom duotone applied to the current block but if the block has a filter applied globally using
theme.json
, the duotone doesn't work because the preset filters were not rendered.Testing Instructions
theme.json
for example "Full-width image with aside caption" from Skatepark.Screenshots or screencast