Checkbox - inverted checkbox have black test when checked #391
-
Bug ReportSteps to reproduce
Expected resultThe label stay in white Actual resultthe label become black. Testcasehttps://jsfiddle.net/L27zd9mg/ Version2.7.1 Edit : A little question at the same time, about Checkbox toggle : Is it possible to override the blue background color in the toggle ? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
You have to use |
Beta Was this translation helpful? Give feedback.
-
Overriding the blue color can be achieved by either changing .ui.inverted.toggle.checkbox input:checked ~ .box:before,
.ui.inverted.toggle.checkbox input:checked ~ label:before,
.ui.inverted.toggle.checkbox input:focus:checked ~ .box:before,
.ui.inverted.toggle.checkbox input:focus:checked ~ label:before {
background-color: #ff0000 !important;
} |
Beta Was this translation helpful? Give feedback.
-
I didn't know the EDIT: I still thing it's weird to have to use END EDIT For the color change, it could be better if we can add the color classes to change it (+ a It'll allow to change the color without having to compile (and will allow multiple background color at the same time) |
Beta Was this translation helpful? Give feedback.
-
No, the inverted Form does actually only change the field label colors. We already discussed making inverted Form elements more consistent and with unique inherited behavior, but this will be a heavy change, so this is gonna be something we consider in 3.0 Please create another feature request for the toggle color... I already had this in mind 😉 |
Beta Was this translation helpful? Give feedback.
-
As said, we will focus on optimizing this aswell in a future release 🙂 |
Beta Was this translation helpful? Give feedback.
-
Ok nice. I'll create a feature request for toggle color then. |
Beta Was this translation helpful? Give feedback.
inverted form
does indeed also change some input field colors, but radio/checkbox is a special/separate element, that's why it's necessary to addinverted
to the toggle in your caseAs said, we will focus on optimizing this aswell in a future release 🙂