Buttons alignments break when updating to recent version #21707
Labels
Backwards Compatibility
Issues or PRs that impact backwards compatability
[Block] Buttons
Affects the Buttons Block
[Priority] High
Used to indicate top priority items that need quick attention
[Type] Bug
An existing feature does not function as intended
If you made a site using a version of Gutenberg before the buttons group was added, for a while it was ok. Gutenberg has a policy of not forcefully updating any blocks until you manually approve it. However, buttons no longer wait for approval.
I have buttons, that used the old html of
<div class='wp-block-button'><a class='wp-block-button__link'></a></div>
and in recent updates the containing div was removed and the classes combined on the 'a' element. I get what's happening, you expect me to use the 'buttons' group in place of the containing div.The problem is that the
buttons
block is not automatically inserted, but thebutton
block is forcefully modified to require it. The biggest issue is alignment. Every singlebutton
on every site that used to be center aligned is now left aligned. I have thousands of buttons, and I'm supposed to go back and manually fix them all? Which I would do, no problem, except now I'm starting to think why bother when Gutenberg might just screw me again later. That's why I'm reporting this as a bug, because if this is the policy of Gutenberg updates, then I don't think I'm going to keep using it.To reproduce
Make a button in an old version of Gutenberg, center align, then update to the latest version and see it become left aligned on the front end
Expected behavior
Don't make changes to the front end until I review each instance of the issue
Screenshots
The text was updated successfully, but these errors were encountered: