Skip to content

Quote Block: Unneeded left padding when block is centred #13845

@laurelfulford

Description

@laurelfulford

Describe the bug

The left padding that's applied to the quote block isn't removed when the block is centred, even though it no longer has a left border.

This is related to changes from #13248; I noticed it while testing the corresponding Core patch in Twenty Nineteen, 46239.

It's important to note this isn't really visually noticeable, at least in my testing, but should probably be fixed for consistency.

To Reproduce
Steps to reproduce the behavior:

  1. Start with a theme that includes support wp-block-styles, and doesn't override the left and right padding on the quote block. Twenty Nineteen with the patch on this ticket is one candidate (though I realize that's a fiddly one to test with! I'll circle back if I find a better example).
  2. Add a quote block.
  3. Align the text centre.

Expected behavior
That the text would be centred, with no left padding.

Screenshots

Front end:
twentynineteen-centre-aligned-frontend

Editor:
twentynineteen-centre-aligned-editor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions