@@ -4,7 +4,8 @@ import styled, { keyframes } from 'styled-components';
4
4
import { usePopper } from 'react-popper' ;
5
5
import { Placement } from '@popperjs/core/lib/enums' ;
6
6
import { variant } from 'styled-system' ;
7
- import { MediaQueries , SemanticColors } from '../../essentials' ;
7
+ import { MediaQueries } from '../../essentials' ;
8
+ import { getSemanticValue } from '../../utils/cssVariables' ;
8
9
import { get } from '../../utils/themeGet' ;
9
10
import { Text } from '../Text/Text' ;
10
11
import { mapPlacementWithDeprecationWarning , TooltipPlacement } from './TooltipPlacement' ;
@@ -88,7 +89,7 @@ interface TooltipBodyProps {
88
89
const TooltipBody = styled . div < TooltipBodyProps > `
89
90
position: relative;
90
91
background-color: ${ p =>
91
- p . inverted ? SemanticColors . background . secondary : SemanticColors . background . primaryEmphasized } ;
92
+ getSemanticValue ( p . inverted ? ' background- secondary-default' : ' background-primary-emphasized' ) } ;
92
93
padding: 0.25rem 0.5rem;
93
94
border-radius: ${ get ( 'radii.2' ) } ;
94
95
opacity: 0;
@@ -112,7 +113,7 @@ const TooltipBody = styled.div<TooltipBodyProps>`
112
113
pointer-events: none;
113
114
border: 0.25rem solid rgba(0, 0, 0, 0);
114
115
border-bottom-color: ${ p =>
115
- p . inverted ? SemanticColors . background . secondary : SemanticColors . background . primaryEmphasized } ;
116
+ getSemanticValue ( p . inverted ? ' background- secondary-default' : ' background-primary-emphasized' ) } ;
116
117
margin-left: -0.25rem;
117
118
118
119
${ arrowPlacementStyles }
0 commit comments