From 73dd3998e01c2e73eb8deee2bb3e70f0b68e840d Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Thu, 18 Jul 2024 17:58:33 +0200 Subject: [PATCH] =?UTF-8?q?refactor:=20prefix=20position=20=E2=86=92=20$po?= =?UTF-8?q?sition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Card/CardMedia/Controls/ProgressBar/Tooltip.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react/src/components/Card/CardMedia/Controls/ProgressBar/Tooltip.js b/packages/react/src/components/Card/CardMedia/Controls/ProgressBar/Tooltip.js index 4274bdca..7bd285d7 100644 --- a/packages/react/src/components/Card/CardMedia/Controls/ProgressBar/Tooltip.js +++ b/packages/react/src/components/Card/CardMedia/Controls/ProgressBar/Tooltip.js @@ -9,9 +9,9 @@ const sizeScales = { normal: 0.8 } const getMarkerFontSize = size => BASE_FONT_SIZE * (sizeScales[size] || 1) const TooltipBase = styled('span').attrs( - ({ position, $isDragging, $visible }) => ({ + ({ $position, $isDragging, $visible }) => ({ style: { - left: `${position}px`, + left: `${$position}px`, top: $visible ? '-4px' : '0px', visibility: $visible ? '$visible' : 'hidden', opacity: $visible ? 1 : 0, @@ -39,7 +39,7 @@ const Tooltip = forwardRef( <>