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

Quote Block: Remove left padding from quote block when its centred #13846

Merged

Conversation

laurelfulford
Copy link
Contributor

Description

In this PR, the padding-left has been removed from the quote block when it's aligned centre.

Fixes #13845.

How has this been tested?

This has been tested on my localhost set up (Laravel Valet) in Firefox 65.0, Mac OSX 10.14.

I've tested this change with Twenties Nineteen down to Twenty Fifteen; Twenties Seventeen, Sixteen and Fifteen all remove the left and right padding from this block, so this issue wasn't present in those themes (nor did this update change anything in them).

When testing Twenty Nineteen, I tested the theme using the patch from https://core.trac.wordpress.org/ticket/46239. This patch fixes some visual issues in the theme, to get it lined up with changes made in #13248.

Screenshots

Before update:

twentynineteen-centre-aligned-frontend

twentynineteen-centre-aligned-editor

After update:

twentynineteen-centre-aligned-frontend-after

twentynineteen-centre-aligned-editor-after

Types of changes

Bug fix (non-breaking change which fixes an issue) - strictly CSS, adding a padding-left: 0 for when the text is aligned centre in the quote block.

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.

@gziolo gziolo added [Type] Bug An existing feature does not function as intended [Block] Quote Affects the Quote Block Good First Review A PR that's suitable for someone looking to contribute for the first time by reviewing code labels Feb 13, 2019
@gziolo gziolo added this to the 5.1 (Gutenberg) milestone Feb 13, 2019
Copy link
Contributor

@kjellr kjellr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks @laurelfulford! 🚢

Before:
screen shot 2019-02-13 at 8 10 42 am

After:
screen shot 2019-02-13 at 8 12 27 am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Quote Affects the Quote Block Good First Review A PR that's suitable for someone looking to contribute for the first time by reviewing code [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quote Block: Unneeded left padding when block is centred
3 participants