Skip to content
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

Styles missing for pullquote with text-align-center #53879

Open
mrwweb opened this issue Aug 22, 2023 · 0 comments
Open

Styles missing for pullquote with text-align-center #53879

mrwweb opened this issue Aug 22, 2023 · 0 comments
Labels
[Block] Pullquote Affects the Pullquote Block [Type] Enhancement A suggestion for improvement.

Comments

@mrwweb
Copy link

mrwweb commented Aug 22, 2023

Description

The styles for the pullquote block do not explicitly define what happens with .has-text-align-center. This is probably because the default style is text-align: center.

This means that centering a pullquote does not work if the theme overrides the default style.

Even though it's redundant with the default, I believe core should provide the following style to increase the likelihood that centering pullquote text works:

.wp-block-pullquote.has-text-align-center blockquote {
	text-align: center;
}

Step-by-step reproduction instructions

  1. Override default style for textAlign of the pullquote with CSS or theme.json.
  2. Select the "Center" text align option

Screenshots, screen recording, code snippet

No response

Environment info

  • WordPress 6.3
  • No Gutenberg
  • Custom Theme

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

No

@jordesign jordesign added [Type] Enhancement A suggestion for improvement. [Block] Pullquote Affects the Pullquote Block labels Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Pullquote Affects the Pullquote Block [Type] Enhancement A suggestion for improvement.
2 participants