11import styled from 'styled-components' ;
2- import { Colors } from '../../../essentials ' ;
2+ import { getSemanticValue } from '../../../utils/cssVariables ' ;
33
44interface CheckmarkProps {
55 error ?: boolean ;
@@ -17,8 +17,8 @@ const Checkmark = styled.input<CheckmarkProps>`
1717 padding: 0;
1818 margin: 0 0.5rem 0 0;
1919
20- background-color: ${ Colors . WHITE } ;
21- box-shadow: inset 0 0 0 0.125rem ${ props => ( props . error ? Colors . NEGATIVE_ORANGE_900 : Colors . AUTHENTIC_BLUE_200 ) } ;
20+ background-color: ${ getSemanticValue ( 'background-primary-default' ) } ;
21+ box-shadow: inset 0 0 0 0.125rem ${ props => getSemanticValue ( props . error ? 'border-danger-emphasized' : 'border-primary-default' ) } ;
2222 border-radius: 50%;
2323 transition: background-color 100ms, box-shadow 100ms;
2424 cursor: pointer;
@@ -41,7 +41,7 @@ const Checkmark = styled.input<CheckmarkProps>`
4141
4242 &:checked {
4343 box-shadow: inset 0 0 0 0.3125rem
44- ${ props => ( props . error ? Colors . NEGATIVE_ORANGE_900 : Colors . ACTION_BLUE_900 ) } ;
44+ ${ props => getSemanticValue ( props . error ? 'border-danger-emphasized' : 'border-info-emphasized' ) } ;
4545
4646 &::after {
4747 opacity: 1;
@@ -52,20 +52,20 @@ const Checkmark = styled.input<CheckmarkProps>`
5252
5353 &:disabled {
5454 cursor: not-allowed;
55- background-color: ${ Colors . AUTHENTIC_BLUE_50 } ;
56- box-shadow: inset 0 0 0 0.125rem ${ Colors . AUTHENTIC_BLUE_50 } ;
55+ background-color: ${ getSemanticValue ( 'background-tertiary-disabled' ) } ;
56+ box-shadow: inset 0 0 0 0.125rem ${ getSemanticValue ( 'background-tertiary-disabled' ) } ;
5757
5858 &:hover {
59- box-shadow: inset 0 0 0 0.125rem ${ Colors . AUTHENTIC_BLUE_50 } ;
59+ box-shadow: inset 0 0 0 0.125rem ${ getSemanticValue ( 'background-tertiary-disabled' ) } ;
6060 }
6161
6262 &:active {
63- background-color: ${ Colors . AUTHENTIC_BLUE_50 } ;
63+ background-color: ${ getSemanticValue ( 'background-tertiary-disabled' ) } ;
6464 }
6565
6666 &:checked {
67- box-shadow: inset 0 0 0 0.3125rem ${ Colors . AUTHENTIC_BLUE_50 } ;
68- background-color: ${ Colors . WHITE } ;
67+ box-shadow: inset 0 0 0 0.3125rem ${ getSemanticValue ( 'background-tertiary-disabled' ) } ;
68+ background-color: ${ getSemanticValue ( 'background-primary-default' ) } ;
6969 }
7070 }
7171` ;
0 commit comments