Filter (duotone) setting set to a block type in theme.json is rendered to the wrong elements on server side #41333
Labels
[Feature] Design Tools
Tools that impact the appearance of blocks both to expand the number of tools and improve the experi
[Type] Bug
An existing feature does not function as intended
Description
When you define a block filter in
theme.json
, the output CSS is not written using the right selectors, so the filter ends up applied to the main block element instead the one indicated inblock.json
.This causes several problems, for example:
Step-by-step reproduction instructions
Skatepark
or another theme with default duotone filters applied to some blocks such asImage
andCover
.Screenshots, screen recording, code snippet
Comparison. To the left is the editor and to the right is the public version of the post:
Step by step video:
default.duotone.mp4
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: