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.

add back htmlFor, and comments about zIndex usage

Sultan2de82e3c191f
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 303d86d708..260911c56a 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
@@ -28,6 +28,7 @@ export const PropertyName = ({ property, label, css }: PropertyProps) => {
color: "$hiContrast",
}),
}}
+ htmlFor={String(property)}
>
{label}
</Label>
diff --git a/packages/design-system/src/components/toggle-group.tsx b/packages/design-system/src/components/toggle-group.tsx
index 25806f1486..8cb67c13c7 100644
--- a/packages/design-system/src/components/toggle-group.tsx
+++ b/packages/design-system/src/components/toggle-group.tsx
@@ -31,6 +31,7 @@ export const ToggleGroupItem = styled(ToggleGroupPrimitive.Item, {
},
"&:last-child": { borderTopRightRadius: 4, borderBottomRightRadius: 4 },
"&:hover": { backgroundColor: "$slateA3" },
+ // @note because the outline is outside of the element others can end up covering it
"&:focus": { boxShadow: "0 0 0 $spacing$2 $colors$blue10", zIndex: 1 },
"&[data-state=on]": { backgroundColor: "$slate5" },
});