.checkbox__container {
display: flex;
flex-direction: row;
align-items: center;
padding: 0px;
gap: 8px;
& input[type="checkbox"] {
box-sizing: border-box;
width: 20px;
height: 20px;
accent-color: red;
background-color: red;
border: 1px solid #575352;
border-radius: 1px;
flex: none;
order: 0;
flex-grow: 0;
&:hover {
background-color: red;
accent-color: red;
border: 1px solid #575352;
border-radius: 1px;
flex: none;
order: 0;
flex-grow: 0;
}
&:checked {
accent-color: #0A8276;
border-radius: 1px;
flex: none;
order: 0;
flex-grow: 0;
&:hover {
accent-color: #08665C;
border-radius: 1px;
flex: none;
order: 0;
flex-grow: 0;
}
}
}
}
When interacting with the checkbox, the specified styles are applied correctly to the checked state and hover over it. However, there seems to be an issue with applying these styles to the default non-checked state.
We need to troubleshoot why the default state is not displaying the expected background color change as defined in the SCSS file.