Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

bikeshed: FloatingPopover to closer align with design spec naming convention

Sultan1d9ddcd7ea94
diff --git a/apps/designer/app/designer/features/style-panel/sections/flex-child/flex-child.tsx b/apps/designer/app/designer/features/style-panel/sections/flex-child/flex-child.tsx
index aaff896993..76b26d6f17 100644
--- a/apps/designer/app/designer/features/style-panel/sections/flex-child/flex-child.tsx
+++ b/apps/designer/app/designer/features/style-panel/sections/flex-child/flex-child.tsx
@@ -1,5 +1,5 @@
import { useState } from "react";
-import { Text, Flex, Grid, ModalPopover } from "@webstudio-is/design-system";
+import { Text, Flex, Grid, FloatingPopover } from "@webstudio-is/design-system";
import type { RenderCategoryProps } from "../../style-sections";
import { ToggleGroupControl } from "../../controls";
import { PropertyName } from "../../shared/property-name";
@@ -137,7 +137,7 @@ export const FlexChildSection = ({
},
{
child: (
- <ModalPopover
+ <FloatingPopover
title="Sizing"
content={
<Grid
@@ -176,7 +176,7 @@ export const FlexChildSection = ({
}
>
<EllipsesIcon />
- </ModalPopover>
+ </FloatingPopover>
),
label: "More sizing options",
value: "",
@@ -219,7 +219,7 @@ export const FlexChildSection = ({
},
{
child: (
- <ModalPopover
+ <FloatingPopover
title="Order"
content={
<Grid css={{ padding: "$3" }}>
@@ -234,7 +234,7 @@ export const FlexChildSection = ({
}
>
<EllipsesIcon />
- </ModalPopover>
+ </FloatingPopover>
),
label: "Customize order",
value: "",
diff --git a/packages/design-system/src/components/popover.tsx b/packages/design-system/src/components/popover.tsx
index 7582c862e8..569c2c2784 100644
--- a/packages/design-system/src/components/popover.tsx
+++ b/packages/design-system/src/components/popover.tsx
@@ -96,7 +96,7 @@ export const PopoverTrigger = PopoverPrimitive.Trigger;
export const PopoverClose = PopoverPrimitive.Close;
export const PopoverPortal = PopoverPrimitive.Portal;
-export const ModalPopover = ({
+export const FloatingPopover = ({
title,
content,
children,