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.

feat: Add mdn link to all properties in advanced style panel (#4951)

Oleg Isonend28428e2bf59
diff --git a/apps/builder/app/builder/shared/css-editor/css-editor.tsx b/apps/builder/app/builder/shared/css-editor/css-editor.tsx
index 77bf4fc604..5ab221e337 100644
--- a/apps/builder/app/builder/shared/css-editor/css-editor.tsx
+++ b/apps/builder/app/builder/shared/css-editor/css-editor.tsx
@@ -63,9 +63,11 @@ const AdvancedPropertyLabel = ({
onDeleteProperty: DeleteProperty;
}) => {
const styleDecl = useComputedStyleDecl(property);
+ const [isOpen, setIsOpen] = useState(false);
+
const description = propertyDescriptions[camelCaseProperty(property)];
+ const styleConfig = styleConfigByName(property);
- const [isOpen, setIsOpen] = useState(false);
return (
<Tooltip
open={isOpen}
@@ -94,6 +96,7 @@ const AdvancedPropertyLabel = ({
onReset?.();
}}
resetType="delete"
+ link={styleConfig?.mdnUrl}
/>
}
>