Skip to content

[6.x] Overflowing button group no longer gets stacked #13072

@daun

Description

@daun

Bug description

Button group fields used to switch from horizontal to vertical layout if the options didn't fit in a single row. Somewhere in a recent refactor, the required styles seems to have been removed. The fieldtype component still switches between btn-group-horizontal and btn-group-vertical classes, but those classes no longer exist in the stylesheet.

v6

Image Image

v5

Image Image

How to reproduce

  • In a blueprint, create a button_group field with multiple long option names
  • Create a page using the blueprint
  • Resize the window so the options no longer fit in a single line

Logs

Environment

6.0-alpha.17

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions