Skip to content

Commit 4512994

Browse files
committed
feat(tabbar): use css variables for colors
1 parent 4846aa8 commit 4512994

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/components/TabBar/Link.tsx

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import React, { ComponentPropsWithoutRef } from 'react';
22
import styled from 'styled-components';
3-
import { Colors, Spaces } from '../../essentials';
3+
import { Spaces } from '../../essentials';
44
import { theme } from '../../essentials/theme';
55
import { get } from '../../utils/themeGet';
6+
import { getSemanticValue } from '../../utils/cssVariables';
67

78
interface LinkProps extends ComponentPropsWithoutRef<'a'> {
89
/**
@@ -33,7 +34,7 @@ const UnderLine = styled.div`
3334
`;
3435

3536
const InnerLink = styled.a.attrs({ theme })<LinkProps>`
36-
color: ${Colors.AUTHENTIC_BLUE_350};
37+
color: ${getSemanticValue('text-tertiary')};
3738
cursor: pointer;
3839
font-size: ${get('fontSizes.1')};
3940
font-weight: ${get('fontWeights.semibold')};
@@ -46,10 +47,10 @@ const InnerLink = styled.a.attrs({ theme })<LinkProps>`
4647
}
4748
4849
&.${props => (props.activeClassName ? props.activeClassName : DEFAULT_ACTIVE_CLASS_NAME)} {
49-
color: ${Colors.ACTION_BLUE_900};
50+
color: ${getSemanticValue('text-link')};
5051
5152
${UnderLine} {
52-
background-color: ${Colors.ACTION_BLUE_900};
53+
background-color: ${getSemanticValue('icon-action-default')};
5354
}
5455
}
5556
`;

0 commit comments

Comments
 (0)