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
Pullquote block: Remove deprecated pullquote style #39413
Conversation
Size Change: -53 B (0%) Total Size: 1.21 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.
I don't recall why the CSS was originally added,
but the PR solves the problem with adding a background color with theme.json.
Thanks for reviewing @carolinan, I'll give it a day or so and rebase to try and clear the failing test. It appears unrelated. |
6412bed
to
ae42516
Compare
The
.is-style-solid-color
pullquote style has been deprecated for some time. However, in thestyle.css
file for the pullquote block, there was also a deprecated style for every other pullquote without this class (i.e..wp-block-pullquote:not(.is-style-solid-color){...}
). This is problematic and prevents you from setting the background color for pullquotes intheme.json
.This PR leaves the deprecated styles for
.is-style-solid-color
intact, but removes any other styling that impacts other pullquote blocks. The.is-style-solid-color
styling is left untouched in case there are still some users utilizing this. That said, complete removal should be considered in the future.Testing Instructions
theme.json
apply a background color to pullquote blocks.theme.json
.Example code for adding a background color in theme.json.