[wp-trac] [WordPress Trac] #52432: Twenty Twenty-One: Vertical buttons block has the wrong width

WordPress Trac noreply at wordpress.org
Wed Feb 3 08:00:58 UTC 2021


#52432: Twenty Twenty-One: Vertical buttons block has the wrong width
---------------------------+--------------------
 Reporter:  poena          |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  5.7
Component:  Bundled Theme  |    Version:
 Severity:  normal         |   Keywords:
  Focuses:  css            |
---------------------------+--------------------
 Vertical layout for the buttons block was added in 5.7 (Gutenberg 9.6).

 When the buttons block is transformed to vertical,
 the width of the inner button block is incorrect,
 it is full width instead of adapting to the text length.

 **Steps to reproduce:**
 In the block editor, add a buttons block with more than one button.
 Select the "Transform to variation" option in the block settings sidebar.
 Select vertical.
 See that the buttons are presented vertically but that the width of the
 button changes.
 Save and view the front to confirm the issue.

 Go back to the editor and try other block settings, save and view the
 front to confirm.
 When a justification is set, the width of the block is reduced again and
 adapts to the text length.
 If a width is set on the individual buttons, the setting is applied
 correctly.


 ''No issues were found with the vertical buttons block in the other
 default themes.''

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52432>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list