File: /var/www/design.system/src/molecules/Inputs/Checkbox/Checkbox.module.scss
.root {
position: relative;
display: flex;
flex-direction: column;
align-items: flex-start;
cursor: default;
&.disabled {
cursor: default;
pointer-events: none;
.wrapper {
&::before {
background-color: var(--backgroundDisabledPrimary);
}
&::after {
background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.3333 1L5 8.33333L1.66667 5' stroke='%239495A3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}
}
.input:checked + .wrapper {
&::before {
background-color: var(--backgroundDisabledPrimary);
}
}
.label {
color: var(--textDisabledPrimary);
}
.description {
color: var(--textDisabledSecondary);
}
}
}
.input {
position: absolute;
opacity: 0;
left: 0;
top: 0;
margin: 0;
z-index: 1;
}
.wrapper {
width: max-content;
min-height: 22px;
display: flex;
position: relative;
padding-left: 28px;
z-index: 0;
&:hover {
&::before {
background-color: var(--backgroundBrandTertiaryHover);
}
}
&::before {
content: '';
position: absolute;
top: 3px;
left: 0;
width: 16px;
height: 16px;
background-color: var(--backgroundBrandTertiary);
border-radius: var(--radius100);
z-index: 0;
}
&::after {
content: '';
position: absolute;
top: 3px;
left: 0;
width: 16px;
height: 16px;
background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.3333 1L5 8.33333L1.66667 5' stroke='%23EBF2FF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
background-repeat: no-repeat;
background-position: 50% 50%;
opacity: 0;
z-index: 1;
}
}
.input:checked + .wrapper {
&::before {
background-color: var(--backgroundBrandPrimary);
}
&::after {
opacity: 1;
}
&:hover {
&::before {
background-color: var(--backgroundBrandPrimaryHover);
}
}
}
.label {
color: var(--textDefaultPrimary);
}
.description {
padding-left: 28px;
color: var(--textDefaultSecondary);
}