mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
The checkbox color was sometimes incorrect after it was checked. I'm not sure how to consistently reproduce this issue, but I was able to make this happen most of the time if I clicked the checkbox while some text was highlighted. It seems that the `:checked` and `:indeterminate` pseudo-selectors were not being applied right away for some reason. Either that or React wasn't setting the `checked` state of the `input` element right away. This problem has been worked around by using CSS classes instead of pseudo-selectors. I am no longer able to reproduce the issue now.
24 lines
396 B
SCSS
24 lines
396 B
SCSS
.check-box {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
background: $white;
|
|
color: $Grey-100;
|
|
width: 18px;
|
|
height: 18px;
|
|
font-size: 21px;
|
|
line-height: 0.9;
|
|
border-radius: 2px;
|
|
display: flex;
|
|
|
|
&__checked, &__indeterminate {
|
|
color: $curious-blue;
|
|
border-color: $curious-blue;
|
|
}
|
|
|
|
&:disabled {
|
|
color: $Grey-100;
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
}
|
|
}
|