diff --git a/apps/designer/app/designer/features/style-panel/shared/css-value-input/unit-select.tsx b/apps/designer/app/designer/features/style-panel/shared/css-value-input/unit-select.tsx index aa8691fde8..6d2c6e412b 100644 --- a/apps/designer/app/designer/features/style-panel/shared/css-value-input/unit-select.tsx +++ b/apps/designer/app/designer/features/style-panel/shared/css-value-input/unit-select.tsx @@ -1,6 +1,15 @@ -import { Select } from "@webstudio-is/design-system"; -import { type Unit, type UnitValue, StyleValue } from "@webstudio-is/react-sdk"; import { useState, useMemo } from "react"; +import { type Unit, type UnitValue, StyleValue } from "@webstudio-is/react-sdk"; +import * as SelectPrimitive from "@radix-ui/react-select"; +import { + styled, + SelectScrollUpButton, + SelectScrollDownButton, + SelectViewport, + SelectItem, + SelectContent, +} from "@webstudio-is/design-system"; +import { ChevronDownIcon, ChevronUpIcon } from "@webstudio-is/icons"; const unitRenderMap: Map = new Map([ ["px", "PX"], @@ -38,19 +47,22 @@ export const useUnitSelect = ({ () => units.map((unit) => unitRenderMap.get(unit) ?? unit), [units] ); - if (value === undefined) return [isOpen, null]; - const element = ( -