fleet/frontend/components/forms/fields/Checkbox/_styles.scss
Gabe Hernandez be77b0de59 add tests for new manage users UI and improve checkbox accessibility (#536)
* e2e test for manage user page, and updating styles for ui components

* make checkbox more accessible and create e2e test around creating user

* add react testing library and use it for radio testing

* clean up comments

* update docs and clean up
2021-03-31 11:58:38 -07:00

71 lines
1.4 KiB
SCSS

.kolide-checkbox {
@include clearfix;
position: relative;
display: inline-block;
&__input {
opacity: 0;
margin: 0;
&:focus + .kolide-checkbox__tick {
&::after {
border-color: $core-blue;
}
}
&:checked + .kolide-checkbox__tick {
&::after {
background-color: $core-blue;
border: solid 2px $core-blue;
}
&::before {
@include position(absolute, 50% null null 50%);
transform: rotate(45deg);
box-sizing: border-box;
display: block;
width: 7px;
height: 13px;
margin: -8px 0 0 -3px;
border: 2px solid $white;
border-top: 0;
border-left: 0;
content: '';
}
}
}
&__tick {
@include size(20px);
@include position(absolute, 50% null null 0);
transform: translateY(-10px);
display: inline-block;
&::after {
@include size(20px);
transition: border 75ms ease-in-out, background 75ms ease-in-out;
border-radius: 2px;
border: solid 2px $ui-borders;
content: '';
box-sizing: border-box;
display: block;
background-color: $white;
visibility: visible;
}
&--disabled {
&::after {
background-color: $ui-borders;
}
}
}
&__label {
font-size: 13px;
font-weight: $regular;
line-height: 20px;
letter-spacing: 0.5px;
color: $core-dark-blue-grey;
padding-left: $pad-small;
}
}