Skip to content

Button Group field type #16782

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

Merged
merged 9 commits into from
Feb 28, 2025
Merged

Conversation

brandonkelly
Copy link
Member

@brandonkelly brandonkelly commented Feb 26, 2025

Description

Adds a new “Button Group” field type, which works like Radio Buttons and Dropdown fields technically, but displays a button group for its UI:

A button group field with three options.

There’s also an “Icons only” mode, which hides the text labels.

A button group field with three options, with text labels hidden.

Related issues

Copy link

linear bot commented Feb 26, 2025

@brandonkelly brandonkelly force-pushed the feature/cms-1368-button-group-field-type branch from 492d0e9 to a58b9f1 Compare February 27, 2025 06:55
Copy link
Contributor

@gcamacho079 gcamacho079 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few small changes requested, otherwise looks great!

@brandonkelly brandonkelly merged commit 87c4a80 into 5.7 Feb 28, 2025
@brandonkelly brandonkelly deleted the feature/cms-1368-button-group-field-type branch February 28, 2025 19:07
@alexanderbuergin
Copy link

Love that one!!!

Can the Icon be added as SVG?

@brandonkelly
Copy link
Member Author

@alexanderbuergin you can pick from the same icons available to entry types.

@alexanderbuergin
Copy link

@brandonkelly Are there any plans to expand the set of icons? For example, by adding support for a custom icon font?

@brandonkelly
Copy link
Member Author

@alexanderbuergin Not currently, feel free to open a new discussion about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants