We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 207a7da commit 73dd399Copy full SHA for 73dd399
packages/react/src/components/Card/CardMedia/Controls/ProgressBar/Tooltip.js
@@ -9,9 +9,9 @@ const sizeScales = { normal: 0.8 }
9
const getMarkerFontSize = size => BASE_FONT_SIZE * (sizeScales[size] || 1)
10
11
const TooltipBase = styled('span').attrs(
12
- ({ position, $isDragging, $visible }) => ({
+ ({ $position, $isDragging, $visible }) => ({
13
style: {
14
- left: `${position}px`,
+ left: `${$position}px`,
15
top: $visible ? '-4px' : '0px',
16
visibility: $visible ? '$visible' : 'hidden',
17
opacity: $visible ? 1 : 0,
@@ -39,7 +39,7 @@ const Tooltip = forwardRef(
39
<>
40
<TooltipBase
41
$visible={$isVisible}
42
- position={$positionX}
+ $position={$positionX}
43
$cardSize={size}
44
ref={ref}
45
$isDragging={$isDragging}
0 commit comments