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

## Description

The little link icon button

<img width="276" alt="image"
src="https://github.com/user-attachments/assets/5553a892-a3b7-46ae-b00a-c56c1a7833cf"
/>


## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
0000)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
This commit is contained in:
Oleg Isonen authored and GitHub committed 2025-03-05 22:51:12 +01:00
1 parent d5edc483ea
commit d28428e2bf
1 file changed
+5 -2
@@ -63,9 +63,11 @@ const AdvancedPropertyLabel = ({
onDeleteProperty: DeleteProperty;
}) => {
const styleDecl = useComputedStyleDecl(property);
const description = propertyDescriptions[camelCaseProperty(property)];
const [isOpen, setIsOpen] = useState(false);
const description = propertyDescriptions[camelCaseProperty(property)];
const styleConfig = styleConfigByName(property);
return (
<Tooltip
open={isOpen}
@@ -94,6 +96,7 @@ const AdvancedPropertyLabel = ({
onReset?.();
}}
resetType="delete"
link={styleConfig?.mdnUrl}
/>
}
>