mirror of
https://github.com/lingble/twenty.git
synced 2025-11-03 14:17:58 +00:00
feature: set the right color for unchecked checkbox
This commit is contained in:
@@ -8,7 +8,23 @@ type OwnProps = {
|
|||||||
|
|
||||||
const StyledContainer = styled.span`
|
const StyledContainer = styled.span`
|
||||||
input[type='checkbox'] {
|
input[type='checkbox'] {
|
||||||
accent-color: ${(props) => props.theme.purple};
|
accent-color: ${(props) => props.theme.blue};
|
||||||
|
margin: 8px;
|
||||||
|
height: 16px;
|
||||||
|
width: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type='checkbox']::before {
|
||||||
|
content: '';
|
||||||
|
border: 1px solid black;
|
||||||
|
width: 14px;
|
||||||
|
height: 14px;
|
||||||
|
border-radius: 2px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type='checkbox']:checked::before {
|
||||||
|
border: 1px solid ${(props) => props.theme.blue};
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user