Toggle checkbox color [feature request]
See original GitHub issueIs it possible to add color prop to <Checkbox toggle />
?
Right now it’s with !important
and it’s not even possible to change color without changing semantic.css
.
.ui.toggle.checkbox input:checked~.box:before,
.ui.toggle.checkbox input:checked~label:before {
background-color: #2185D0 !important
}
.ui.toggle.checkbox input:focus:checked~.box:before,
.ui.toggle.checkbox input:focus:checked~label:before {
background-color: #0d71bb !important
}
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Semantic React UI : is there a way to change the background ...
First, a color feature for checkboxes is missing from semantic-ui (as far as I can see, there is no documentation about it at...
Read more >Checkbox | Semantic UI
A checkbox allows a user to select a value from a small set of options, often binary. ... Toggle. A checkbox can be...
Read more >Toggle-Switch Guidelines - Nielsen Norman Group
Radio Buttons, Checkboxes, Single Checkbox, Toggle Switches ... Color is an important visual signifier for toggles and there are two things ...
Read more ><input>: The Input (Form Input) element - HTML
checkbox, A check box allowing single values to be selected/deselected. ... color, A control for specifying a color; opening a color picker ...
Read more >Understanding Success Criterion 1.4.11: Non-text Contrast | WAI
A black border on a white background indicates the checkbox, the black tick shape indicates the state of checked. Black square border with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
this works in SUIR
@farhansalam solution is great but when the Toggle loses focus, it changes to the default blue color, you also need to add: