h2oai / h2oai/wave

Add color option for ui.choice

Open
#2,084 7 comments 0 reactions 0 assignees View on GitHub
feature ui
Dominant language
Python
Stars
4.3k
Forks
371
Avg merge
26d 1h
Merged PRs (30d)
1

Description

#### Is your feature request related to a problem? Please describe

Currenltly an option could be either disabled or enabled.
It would be nice in some cases to highlight certain options.
One way could be to change the fontcolor.

![image](https://github.com/h2oai/wave/assets/5063584/09f23ecb-d1f3-4b1c-ad7b-1067cd46f323)

#### Describe the solution you'd like
Add a new optional color to `ui.choice` to be able to set fontcolor.

Contributor guide

Open the contributing guide

Research direction

Start at the implementation and API entry point for `ui.choice`, and inspect how its existing enabled and disabled states are represented. Trace the related UI behavior before deciding where the optional font color belongs. Done means a choice can accept an optional color and display it while preserving existing behavior when no color is supplied.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.