Fixed a minor bug with checkboxes and radios
Should now be able to use :disabled, as well as [disabled].
This commit is contained in:
parent
568aea95b4
commit
fb3b8e20d1
7
dist/mini-default.css
vendored
7
dist/mini-default.css
vendored
|
@ -944,11 +944,14 @@ input[type="file"] {
|
|||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.input-group [type="checkbox"][disabled] + label, .input-group [type="radio"][disabled] + label {
|
||||
.input-group [type="checkbox"][disabled] + label, .input-group [type="radio"][disabled] + label,
|
||||
.input-group [type="checkbox"]:disabled + label, .input-group [type="radio"]:disabled + label {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.input-group [type="checkbox"][disabled] + label:before, .input-group [type="checkbox"][disabled] + label:after, .input-group [type="radio"][disabled] + label:before, .input-group [type="radio"][disabled] + label:after {
|
||||
.input-group [type="checkbox"][disabled] + label:before, .input-group [type="checkbox"][disabled] + label:after, .input-group [type="radio"][disabled] + label:before, .input-group [type="radio"][disabled] + label:after,
|
||||
.input-group [type="checkbox"]:disabled + label:before,
|
||||
.input-group [type="checkbox"]:disabled + label:after, .input-group [type="radio"]:disabled + label:before, .input-group [type="radio"]:disabled + label:after {
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
|
|
2
dist/mini-default.min.css
vendored
2
dist/mini-default.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -1214,3 +1214,4 @@
|
|||
- Updated `tab` selectors to use new, *loose* definitions, effectively making the module `0.04KB` lighter. Not a huge difference, but good enough due to the maintenance impact it has on the module, plus the consistency fixed for `.stacked`.
|
||||
- Moved `input_control`'s `disabled` styling to low-specificity behind the existing flag, saved another `0.05KB`, which is quite a big change. Parsing should also be faster than before. Good catch, **hugging cat**!
|
||||
- Lowered specificity of selectors used in `.button-group` for styling `border`s, cut off another `0.02KB`.
|
||||
- Added styling for `:disabled` on `checkbox` and `radio`, pushed the size back up a little bit.
|
||||
|
|
|
@ -452,7 +452,8 @@ a[role="button"], label[role="button"], [role="button"] {
|
|||
}
|
||||
}
|
||||
// Disabled and readonly styles.
|
||||
[type="checkbox"][disabled] + label, [type="radio"][disabled] + label {
|
||||
[type="checkbox"][disabled] + label, [type="radio"][disabled] + label,
|
||||
[type="checkbox"]:disabled + label, [type="radio"]:disabled + label {
|
||||
cursor: not-allowed;
|
||||
&:before, &:after {
|
||||
opacity: $checkbox-disabled-opacity;
|
||||
|
|
Loading…
Reference in a new issue