@@ -4,10 +4,10 @@ import styled from 'styled-components';
4
4
import { ChevronRightIcon } from '../../icons' ;
5
5
import { Text } from '../Text/Text' ;
6
6
7
- import { Colors } from '../../essentials' ;
8
7
import { theme } from '../../essentials/theme' ;
9
8
import { get } from '../../utils/themeGet' ;
10
9
import { Box } from '../Box/Box' ;
10
+ import { getSemanticValue } from '../../utils/cssVariables' ;
11
11
12
12
interface InvertedStyle {
13
13
/**
@@ -53,7 +53,7 @@ const Breadcrumbs = ({ children, inverted }: BreadcrumbsProps): JSX.Element => {
53
53
</ nav >
54
54
{ index < arrayChildren . length - 1 ? (
55
55
< Box height = { 16 } mt = "0.125rem" >
56
- < ChevronRightIcon size = { 16 } color = { Colors . AUTHENTIC_BLUE_350 } />
56
+ < ChevronRightIcon size = { 16 } color = { getSemanticValue ( 'foreground-neutral-default' ) } />
57
57
</ Box >
58
58
) : // eslint-disable-next-line unicorn/no-null
59
59
null }
@@ -65,7 +65,10 @@ const Breadcrumbs = ({ children, inverted }: BreadcrumbsProps): JSX.Element => {
65
65
66
66
const Link = styled . a . attrs ( { theme } ) < LinkProps > `
67
67
display: inline-block;
68
- color: ${ p => ( p . inverted ? Colors . WHITE : Colors . ACTION_BLUE_900 ) } ;
68
+ color: ${ p =>
69
+ p . inverted
70
+ ? getSemanticValue ( 'foreground-on-background-primary' )
71
+ : getSemanticValue ( 'foreground-accent-default' ) } ;
69
72
cursor: pointer;
70
73
line-height: 1.4;
71
74
font-family: ${ get ( 'fonts.normal' ) } ;
@@ -75,7 +78,10 @@ const Link = styled.a.attrs({ theme })<LinkProps>`
75
78
76
79
&:hover,
77
80
&:active {
78
- color: ${ p => ( p . inverted ? Colors . AUTHENTIC_BLUE_350 : Colors . ACTION_BLUE_1000 ) } ;
81
+ color: ${ p =>
82
+ p . inverted
83
+ ? getSemanticValue ( 'foreground-neutral-default' )
84
+ : getSemanticValue ( 'foreground-accent-emphasized' ) } ;
79
85
text-decoration: underline;
80
86
}
81
87
` ;
0 commit comments