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

Buttons block: centered buttons are pushed to the left #23318

Closed
Aljullu opened this issue Jun 19, 2020 · 0 comments · Fixed by #23319
Closed

Buttons block: centered buttons are pushed to the left #23318

Aljullu opened this issue Jun 19, 2020 · 0 comments · Fixed by #23319
Assignees
Labels
[Block] Buttons Affects the Buttons Block CSS Styling Related to editor and front end styles, CSS-specific issues. [Package] Block library /packages/block-library

Comments

@Aljullu
Copy link
Contributor

Aljullu commented Jun 19, 2020

To reproduce

  1. Create a page and add the Buttons block.
  2. Add a button and center it.
  3. Notice it has a right margin, so it's actually not completely centered in the page.

It's easier to notice if you add an element above or below which is also centered (see screenshot below).

Expected behavior
We should remove the margin from the last button, so buttons are really centered.

Screenshots

@Aljullu Aljullu added [Package] Block library /packages/block-library [Block] Buttons Affects the Buttons Block CSS Styling Related to editor and front end styles, CSS-specific issues. labels Jun 19, 2020
@Aljullu Aljullu self-assigned this Jun 19, 2020
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Jun 19, 2020
@Aljullu Aljullu removed the [Status] In Progress Tracking issues with work in progress label Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Buttons Affects the Buttons Block CSS Styling Related to editor and front end styles, CSS-specific issues. [Package] Block library /packages/block-library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant