-
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
Duotone: Prevent early return blocking other style generation #43300
Duotone: Prevent early return blocking other style generation #43300
Conversation
Size Change: -3 B (0%) Total Size: 1.24 MB
ℹ️ View Unchanged
|
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.
Good catch @aaronrobertshaw, thanks for fixing this up!
✅ Confirmed that without this change, style from #43298 are not output
✅ After removing all Duotone rules in the theme, the Image block still renders correctly
✅ With Duotone rules (and setting Duotone rules at the block level) the behaviour appears to be working as on trunk, as far as I can tell:
LGTM! ✨
Related:
What?
Fixes issue where a block with duotone selectors configured but no duotone declarations would exit the generation of the global styles early, blocking any other global styles for the block.
Why?
How?
Testing Instructions