Skip to content

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

@mrwweb

Description

@mrwweb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions