Skip to content

Commit e8c66f7

Browse files
committed
feat(popover): migrate to semantic colors
1 parent 98f3d53 commit e8c66f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/Popover/Popover.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { usePopper } from 'react-popper';
55

66
import { theme } from '../../essentials/theme';
77
import { get } from '../../utils/themeGet';
8+
import { getSemanticValue } from '../../utils/cssVariables';
89
import { Colors, Spaces } from '../../essentials';
910
import { ChevronDownIcon, ChevronUpIcon } from '../../icons/index';
1011
import { useClickOutside } from '../../utils/hooks/useClickOutside';
@@ -29,13 +30,13 @@ const DefaultPopoverWrapper = styled.div.attrs({ theme })`
2930
display: flex;
3031
align-items: center;
3132
justify-content: center;
32-
border: 1px solid ${get('semanticColors.button.secondary.borderHover')};
33+
border: 1px solid ${getSemanticValue('border-primary-default')};
3334
padding: 0.8125rem ${Spaces[2]};
3435
border-radius: ${get('radii.2')};
3536
3637
&:hover {
3738
cursor: pointer;
38-
background-color: ${get('semanticColors.background.secondary')} !important;
39+
background-color: ${getSemanticValue('background-secondary-default')} !important;
3940
}
4041
`;
4142

0 commit comments

Comments
 (0)