Skip to content

Commit d0bc552

Browse files
author
Zack Jones
committed
feat(divider): migrate to semantic colors
1 parent f23e081 commit d0bc552

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Divider/Divider.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import styled, { StyledComponent } from 'styled-components';
33
import { compose, space, SpaceProps } from 'styled-system';
44
import { theme } from '../../essentials/theme';
5-
import { get } from '../../utils/themeGet';
5+
import { getSemanticValue } from '../../utils/cssVariables';
66

77
type DividerOffset = number | string;
88

@@ -24,7 +24,7 @@ const HorizontalLine: StyledComponent<'div', typeof theme, DividerProps, 'theme'
2424
margin-left: auto;
2525
margin-right: auto;
2626
border: 0;
27-
border-top: 1px solid ${get('semanticColors.border.primary')};
27+
border-top: 1px solid ${getSemanticValue('border-primary-default')};
2828
2929
${compose(space)}
3030
`;
@@ -37,7 +37,7 @@ const VerticalLine: StyledComponent<'div', typeof theme, DividerProps, 'theme'>
3737
margin-top: 0;
3838
margin-bottom: 0;
3939
border: 0;
40-
border-left: 1px solid ${get('semanticColors.border.primary')};
40+
border-left: 1px solid ${getSemanticValue('border-primary-default')};
4141
4242
${compose(space)}
4343
`;

0 commit comments

Comments
 (0)