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

Margin right unique button #21675

Closed
unprintedch opened this issue Apr 17, 2020 · 2 comments
Closed

Margin right unique button #21675

unprintedch opened this issue Apr 17, 2020 · 2 comments
Labels
[Block] Buttons Affects the Buttons Block

Comments

@unprintedch
Copy link

In button block even if there is only one button we still have

.wp-block-buttons .wp-block-button.wp-block-button {
display: inline-block;
margin-right: 8px;
margin-bottom: 8px;
}
could we have ?
.wp-block-buttons .wp-block-button.wp-block-button:only-child {
margin-right: 0px;
}

@Soean Soean added the [Block] Buttons Affects the Buttons Block label Apr 18, 2020
@pascalknecht
Copy link

Yes please. This style also breaks centering in the backend as then there is only margin-left: auto but margin-right: 8px which breaks the centering.

@youknowriad
Copy link
Contributor

closed by #23319

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
Projects
None yet
Development

No branches or pull requests

4 participants