-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Button block: add text alignment options #8780
Comments
I am not sure this is likely to be a common enough request to warrant changing the toolbar and I think it might lead to confusion since the expectation for text alignment could be that it operates on the text of the button itself and not on the alignment of the button. I think it would be reasonable, for cases such as you've suggested, to use the "Additional CSS Class" field and some custom CSS to make the desired change. If you feel strongly that is not the case and you feel strongly that adding text alignment options to the button block for layout controls such as showing a button on the right without floating it, please reply back and let me know and I will re-open the issue for you. Thank you! |
Agree about exploring it on a larger scale and also about container block as a possible place to tackle it. Thanks for the follow-up! |
This comes up all the time for me. I frequently need to right align a button, but I've never needed to float it to the right. I think text alignment makes more sense than it's current treatment. |
not this option was gone from Gutenberg to align button in the centre |
Please, add again this feature |
The Button block currently has the ability to be floated to the left or right, as well as the ability to be center-aligned. However, there are situations where you want to have a button shown on the right, but you do not want the wrapping behavior of floats. Therefore, I think the Button block should have text alignment options.
Notably, I am not asking that the float alignment controls be removed. I am asking that text alignment controls be provided in addition to the float alignment controls.
The text was updated successfully, but these errors were encountered: