forked from mirrors/gecko-dev
Bug 1869233 - Don't fade disabled checkboxes. r=dao,desktop-theme-reviewers
The non-native theme already applies disabled appearance on its own. Applying opacity on top fades them quite a lot. Differential Revision: https://phabricator.services.mozilla.com/D196018
This commit is contained in:
parent
865f64bb14
commit
363ff6a012
2 changed files with 10 additions and 14 deletions
|
|
@ -8,6 +8,14 @@
|
|||
checkbox {
|
||||
align-items: center;
|
||||
margin: 4px 2px;
|
||||
|
||||
&[disabled="true"][native] {
|
||||
color: GrayText;
|
||||
}
|
||||
|
||||
&[disabled="true"]:not([native]) > .checkbox-label-box {
|
||||
opacity: 0.4;
|
||||
}
|
||||
}
|
||||
|
||||
.checkbox-icon {
|
||||
|
|
@ -22,12 +30,6 @@ checkbox {
|
|||
margin: 1px 0;
|
||||
}
|
||||
|
||||
/* ..... disabled state ..... */
|
||||
|
||||
checkbox[disabled="true"] {
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
/* ::::: checkmark image ::::: */
|
||||
|
||||
.checkbox-check {
|
||||
|
|
@ -76,10 +78,6 @@ checkbox[disabled="true"] {
|
|||
}
|
||||
}
|
||||
|
||||
checkbox[native][disabled="true"] {
|
||||
color: GrayText;
|
||||
}
|
||||
|
||||
@media (-moz-platform: windows) or (-moz-platform: linux) {
|
||||
checkbox[native]:focus-visible > .checkbox-label-box {
|
||||
outline: var(--focus-outline);
|
||||
|
|
|
|||
|
|
@ -728,10 +728,8 @@ xul|label[disabled="true"] {
|
|||
color: inherit;
|
||||
}
|
||||
|
||||
html|input[type="checkbox"]:disabled,
|
||||
html|input[type="radio"]:disabled,
|
||||
xul|checkbox[disabled="true"],
|
||||
xul|radio[disabled="true"],
|
||||
xul|checkbox[disabled="true"] > .checkbox-label-box,
|
||||
xul|radio[disabled="true"] > .radio-label-box,
|
||||
xul|label[disabled="true"] {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue