Skip to content

Icon and Color settings for Dropdown field options#16645

Merged
brandonkelly merged 2 commits into5.7from
feature/cms-1360-icon-and-color-settings-for-dropdown-field-options
Feb 7, 2025
Merged

Icon and Color settings for Dropdown field options#16645
brandonkelly merged 2 commits into5.7from
feature/cms-1360-icon-and-color-settings-for-dropdown-field-options

Conversation

@brandonkelly
Copy link
Copy Markdown
Member

Description

Adds new “Icon” and “Color” settings to Dropdown field options.

Options that have a color but no icon will show a color swatch:

A Dropdown Options setting with “Blue”, “Pink”, and “White” options, each with a corresponding color hex value entered into the Color setting.

An expanded Dropdown field with “Blue”, “Pink”, and “White” options, each with a color swatch to help visualize the color.

Options with an icon and a color will render the icon in the selected color:

A Dropdown Options setting with “Left”, “Center”, “Right”, and “Full” options, each with a corresponding text alignment icon seleceted in the Icon setting, and a dark blue color hex value entered into the Color setting.

An expanded Dropdown field with “Left”, “Center”, “Right”, and “Full” options, each with a dark blue text alignment icon to help visualize the option.

Related issues

@linear
Copy link
Copy Markdown

linear Bot commented Feb 7, 2025

[ci skip]
@brandonkelly brandonkelly merged commit 68a1d23 into 5.7 Feb 7, 2025
@brandonkelly brandonkelly deleted the feature/cms-1360-icon-and-color-settings-for-dropdown-field-options branch February 7, 2025 17:03
@alexanderbuergin
Copy link
Copy Markdown

Love it.

@calebgdurham
Copy link
Copy Markdown

Potential feature request: I'd love for the option to pass the icon and color through with the value (ideally rendered like the status pill) in CP Element Indexes. I have a Channel for users to submit bugs to, and a field for bug statuses. This would help our team better track bug statues visually.

@brandonkelly
Copy link
Copy Markdown
Member Author

@calebgdurham Already added for 5.8 :) #17178

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