Don't use __DEPRECATED__Text in Label (#414)

Fixes #381
This commit is contained in:
Roman Pominov authored and GitHub committed 2022-11-07 18:30:16 +03:00
1 parent 62e53326c2
commit e922279ce0
3 files changed
+4 -10

No files matched your search

@@ -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"}
@@ -31,8 +31,6 @@ export const PropertyName = ({ property, label, css }: PropertyProps) => {
color: "$hiContrast",
}),
}}
variant="contrast"
size="1"
htmlFor={property}
>
{label}
@@ -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",