Skip to content
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

Add a traffic light style theme to the checkbox component #7736

Open
MatthewVaadin opened this issue Sep 1, 2024 · 1 comment
Open

Add a traffic light style theme to the checkbox component #7736

MatthewVaadin opened this issue Sep 1, 2024 · 1 comment
Labels
enhancement New feature or request vaadin-checkbox

Comments

@MatthewVaadin
Copy link

Describe your motivation

In some contexts, it is useful to have a checkbox component that uses red/green rather than the default grey/blue. For example:

  • To make a particular setting stand out or convey importance, such as enabling/disabling an entire section/module/service
  • To align with other UI elements that use red for error/off and green for ok/on

Describe the solution you'd like

I would like a theme that can be set on the checkbox component so that it uses red for unchecked, green for checked and amber/yellow for indeterminate. The unchecked state would no longer look "empty" so may require a symbol to be used (e.g. a cross).

Describe alternatives you've considered

Up to now, I have been using my own custom style sheet, but was encouraged to submit this for others to use.

Additional context

No response

@web-padawan
Copy link
Member

See #7737 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vaadin-checkbox
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants