Skip to content

Commit

Permalink
fix values not being appended with px in the DynamicPopover
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Jan 7, 2025
1 parent b6ee2d6 commit 701a812
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ const PopoverBox = React.forwardRef<HTMLElement, BoxProps & PopoverBoxProps>(
top: getValueForTransitionState($state.status, 'topFunc')($y),
transform: `translate3d(0,0,0) ${$translate}`,
...assignInlineVars({
[styles.popoverBoxWidth]: $width.toString(),
[styles.mobileWidth]: $mobileWidth.toString(),
[styles.popoverBoxWidth]: typeof $width === 'string' ? $width : `${$width}px`,
[styles.mobileWidth]: typeof $mobileWidth === 'string' ? $mobileWidth : `${$mobileWidth}px`,
}),
}}
opacity={getValueForTransitionState($state.status, 'opacity')}
Expand Down

0 comments on commit 701a812

Please sign in to comment.