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

Pulllquote block: Text align setting is wrongly affecting the width and the font size of the block #43187

Closed
matiasbenedetto opened this issue Aug 12, 2022 · 0 comments · Fixed by #43188
Labels
[Block] Pullquote Affects the Pullquote Block [Type] Bug An existing feature does not function as intended

Comments

@matiasbenedetto
Copy link
Contributor

matiasbenedetto commented Aug 12, 2022

Description

The text-align settings of the pull quote block is affecting the width and the font size of the pull quote block when it is inside a container such as a group.

Step-by-step reproduction instructions

  1. Select emptytheme theme to discard theme styles problems.
  2. Add a new post
  3. Add a group block
  4. Inside the group block add a pullquote block
  5. Select the align left or right.
  6. Save and publish
  7. See the frontend and verify that the width of the block is wrongly limited by CSS and the font size is not the same using different text-align option.

Test markup:

<!-- wp:group -->
<div class="wp-block-group"><!-- wp:pullquote {"textAlign":"left"} -->
<figure class="wp-block-pullquote has-text-align-left"><blockquote><p>This is my quote</p><cite>The author</cite></blockquote></figure>
<!-- /wp:pullquote --></div>
<!-- /wp:group -->

Screenshots, screen recording, code snippet

pullquote.mp4

Environment info

  • Wordpress 6.0.1
  • Gutenberg trunk

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

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] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant