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.

Don't use __DEPRECATED__Text in Label (#414)

Roman Pominove922279ce0fb
diff --git a/apps/designer/app/designer/features/sidebar-left/panels/pages/settings.tsx b/apps/designer/app/designer/features/sidebar-left/panels/pages/settings.tsx
index 1250bd1c53..900c0a2036 100644
--- a/apps/designer/app/designer/features/sidebar-left/panels/pages/settings.tsx
+++ b/apps/designer/app/designer/features/sidebar-left/panels/pages/settings.tsx
@@ -59,9 +59,7 @@ const FormFields = ({
return (
<>
<Group>
- <Label htmlFor={fieldIds.name} size={2}>
- Page Name
- </Label>
+ <Label htmlFor={fieldIds.name}>Page Name</Label>
<InputErrorsTooltip errors={fieldErrors.name}>
<TextField
state={fieldErrors.name && "invalid"}
@@ -76,9 +74,7 @@ const FormFields = ({
</InputErrorsTooltip>
</Group>
<Group>
- <Label htmlFor={fieldIds.path} size={2}>
- Path
- </Label>
+ <Label htmlFor={fieldIds.path}>Path</Label>
<InputErrorsTooltip errors={fieldErrors.path}>
<TextField
state={fieldErrors.path && "invalid"}
diff --git a/apps/designer/app/designer/features/style-panel/shared/property-name.tsx b/apps/designer/app/designer/features/style-panel/shared/property-name.tsx
index ded7249bc1..df0c1c290a 100644
--- a/apps/designer/app/designer/features/style-panel/shared/property-name.tsx
+++ b/apps/designer/app/designer/features/style-panel/shared/property-name.tsx
@@ -31,8 +31,6 @@ export const PropertyName = ({ property, label, css }: PropertyProps) => {
color: "$hiContrast",
}),
}}
- variant="contrast"
- size="1"
htmlFor={property}
>
{label}
diff --git a/packages/design-system/src/components/label.tsx b/packages/design-system/src/components/label.tsx
index 3ac8527c32..37cca25602 100644
--- a/packages/design-system/src/components/label.tsx
+++ b/packages/design-system/src/components/label.tsx
@@ -1,8 +1,8 @@
import { styled } from "../stitches.config";
import * as LabelPrimitive from "@radix-ui/react-label";
-import { __DEPRECATED__Text } from "./__DEPRECATED__/text";
+import { Text } from "./text";
-export const Label = styled(LabelPrimitive.Root, __DEPRECATED__Text, {
+export const Label = styled(LabelPrimitive.Root, Text, {
display: "inline-block",
verticalAlign: "middle",
cursor: "default",