1
1
import styled from 'styled-components' ;
2
- import { Colors } from '../../../essentials ' ;
2
+ import { getSemanticValue } from '../../../utils/cssVariables ' ;
3
3
4
4
interface CheckmarkProps {
5
5
error ?: boolean ;
@@ -17,8 +17,8 @@ const Checkmark = styled.input<CheckmarkProps>`
17
17
padding: 0;
18
18
margin: 0 0.5rem 0 0;
19
19
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' ) } ;
22
22
border-radius: 50%;
23
23
transition: background-color 100ms, box-shadow 100ms;
24
24
cursor: pointer;
@@ -41,7 +41,7 @@ const Checkmark = styled.input<CheckmarkProps>`
41
41
42
42
&:checked {
43
43
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' ) } ;
45
45
46
46
&::after {
47
47
opacity: 1;
@@ -52,20 +52,20 @@ const Checkmark = styled.input<CheckmarkProps>`
52
52
53
53
&:disabled {
54
54
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' ) } ;
57
57
58
58
&: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' ) } ;
60
60
}
61
61
62
62
&:active {
63
- background-color: ${ Colors . AUTHENTIC_BLUE_50 } ;
63
+ background-color: ${ getSemanticValue ( 'background-tertiary-disabled' ) } ;
64
64
}
65
65
66
66
&: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' ) } ;
69
69
}
70
70
}
71
71
` ;
0 commit comments