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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
Add Value Tooltips (#1928)
Ivan Starkov01faa89826f1
diff --git a/apps/builder/app/builder/features/style-panel/controls/toggle/toggle-control.tsx b/apps/builder/app/builder/features/style-panel/controls/toggle/toggle-control.tsxindex 668b4007b4..0eb590727f 100644--- a/apps/builder/app/builder/features/style-panel/controls/toggle/toggle-control.tsx+++ b/apps/builder/app/builder/features/style-panel/controls/toggle/toggle-control.tsx@@ -2,16 +2,83 @@ import {Flex,ToggleGroup,ToggleGroupButton,- EnhancedTooltip,} from "@webstudio-is/design-system";-import type { StyleSource } from "../../shared/style-info";+import type { StyleInfo, StyleSource } from "../../shared/style-info";+import { useState, type ReactElement } from "react";+import { PropertyTooltip } from "../../shared/property-name";+import type { StyleProperty } from "@webstudio-is/css-data";export type ToggleGroupControlProps = {+ style: StyleInfo;styleSource?: StyleSource;value: string;- items: { child: JSX.Element; label: string; value: string }[];+ items: {+ child: JSX.Element;+ title: string;+ description: string;+ value: string;+ propertyValues: string | string[];+ }[];onValueChange?: (value: string) => void;- onReset: () => void;+ onReset?: () => void;+ properties?: StyleProperty[] | undefined;+};++const ToggleGroupButtonWithTooltip = ({+ title,+ propertyValues,+ description,+ children,+ value,+ onReset,+ tooltipOpen,+ onTooltipOpenChange,+ onMouseEnter,+ style,+ properties,+}: {+ title: string;+ value: string;+ propertyValues: string | string[];+ description: React.ReactNode;+ children: ReactElement;+ onReset?: () => void;+ tooltipOpen: boolean;+ onTooltipOpenChange: (open: boolean) => void;+ onMouseEnter: (event: React.MouseEvent<HTMLButtonElement>) => void;+ style: StyleInfo;+ properties?: StyleProperty[] | undefined;+}) => {+ const scrollableContent = Array.isArray(propertyValues)+ ? propertyValues.map((propertyValue) => (+ <div key={propertyValue}>{propertyValue}</div>+ ))+ : propertyValues;++ return (+ <PropertyTooltip+ open={tooltipOpen}+ onOpenChange={onTooltipOpenChange}+ title={title}+ scrollableContent={scrollableContent}+ description={description}+ properties={properties ?? []}+ style={style}+ onReset={onReset}+ >+ <ToggleGroupButton+ onMouseEnter={onMouseEnter}+ value={value}+ onClick={(event) => {+ if (event.altKey) {+ onReset?.();+ }+ }}+ >+ <Flex>{children}</Flex>+ </ToggleGroupButton>+ </PropertyTooltip>+ );};// @todo refactor this control to follow the standard interface we otherwise have for all controls@@ -21,7 +88,18 @@ export const ToggleGroupControl = ({items = [],onValueChange,onReset,+ style,+ properties,}: ToggleGroupControlProps) => {+ // Issue: The tooltip's grace area is too big and overlaps with nearby buttons,+ // preventing the tooltip from changing when the buttons are hovered over in certain cases.+ // To solve issue and allow tooltips to change on button hover,+ // we close the button tooltip in the ToggleGroupButton.onMouseEnter handler.+ // onMouseEnter used to preserve default hovering behavior on tooltip.+ const [openTootips, setOpenTooltips] = useState(() =>+ Array.from(items, () => false)+ );+return (<ToggleGroupcolor={styleSource}@@ -30,22 +108,42 @@ export const ToggleGroupControl = ({onValueChange={onValueChange}css={{ width: "fit-content" }}>- {items.map(({ child, label, value }, index) => {- return (- <EnhancedTooltip key={index} content={label}>- <ToggleGroupButton- value={value}- onClick={(event) => {- if (event.altKey) {- onReset?.();- }+ {items.map(+ (+ { child, title, value: itemValue, description, propertyValues },+ index+ ) => {+ return (+ <ToggleGroupButtonWithTooltip+ key={index}+ style={style}+ title={title}+ propertyValues={propertyValues}+ properties={itemValue === value ? properties : []}+ description={description}+ value={itemValue}+ onReset={itemValue === value ? onReset : undefined}+ tooltipOpen={openTootips[index]}+ onTooltipOpenChange={(open) => {+ setOpenTooltips((openTooltips) => {+ const newOpenTooltips = [...openTooltips];+ newOpenTooltips[index] = open;+ return newOpenTooltips;+ });+ }}+ onMouseEnter={(event) => {+ setOpenTooltips((openTooltips) => {+ return openTooltips.map((openTooltip, i) =>+ i !== index ? false : openTooltip+ );+ });}}>- <Flex>{child}</Flex>- </ToggleGroupButton>- </EnhancedTooltip>- );- })}+ {child}+ </ToggleGroupButtonWithTooltip>+ );+ }+ )}</ToggleGroup>);};diff --git a/apps/builder/app/builder/features/style-panel/sections/backgrounds/background-content.tsx b/apps/builder/app/builder/features/style-panel/sections/backgrounds/background-content.tsxindex 0497e779b8..354c2cb402 100644--- a/apps/builder/app/builder/features/style-panel/sections/backgrounds/background-content.tsx+++ b/apps/builder/app/builder/features/style-panel/sections/backgrounds/background-content.tsx@@ -264,6 +264,7 @@ export const BackgroundContent = (props: BackgroundContentProps) => {<Flex css={{ justifySelf: "end" }}><ToggleGroupControl+ style={props.currentStyle}styleSource={"default"}onValueChange={(value) =>setProperty("backgroundRepeat")({@@ -271,28 +272,39 @@ export const BackgroundContent = (props: BackgroundContentProps) => {value,})}- onReset={() => deleteProperty("backgroundRepeat")}value={toValue(props.currentStyle.backgroundRepeat?.value)}items={[{child: <CrossSmallIcon />,- label: "background-repeat: no-repeat",+ title: "Background Repeat",+ description:+ "This value indicates that the background image will not be repeated and will appear only once.",value: "no-repeat",+ propertyValues: "background-repeat: no-repeat;",},{child: <RepeatGridIcon />,- label: "background-repeat: repeat",+ title: "Background Repeat",+ description:+ "This value indicates that the background image will be repeated both horizontally and vertically to fill the entire background area.",value: "repeat",+ propertyValues: "background-repeat: repeat;",},{child: <RepeatColumnIcon />,- label: "background-repeat: repeat-y",+ title: "Background Repeat",+ description:+ "This value indicates that the background image will be repeated only vertically.",value: "repeat-y",+ propertyValues: "background-repeat: repeat-y;",},{child: <RepeatRowIcon />,- label: "background-repeat: repeat-x",+ title: "Background Repeat",+ description:+ "This value indicates that the background image will be repeated only horizontally.",value: "repeat-x",+ propertyValues: "background-repeat: repeat-x;",},]}/>diff --git a/apps/builder/app/builder/features/style-panel/sections/flex-child/flex-child.tsx b/apps/builder/app/builder/features/style-panel/sections/flex-child/flex-child.tsxindex 1f6acd38ef..ef24416a39 100644--- a/apps/builder/app/builder/features/style-panel/sections/flex-child/flex-child.tsx+++ b/apps/builder/app/builder/features/style-panel/sections/flex-child/flex-child.tsx@@ -58,39 +58,56 @@ const FlexChildSectionAlign = (props: RenderCategoryProps) => {onReset={() => deleteProperty("alignSelf")}/><ToggleGroupControl+ style={props.currentStyle}onValueChange={(value) => setAlignSelf({ type: "keyword", value })}onReset={() => deleteProperty("alignSelf")}value={toValue(currentStyle.alignSelf?.value)}items={[{child: <SmallXIcon />,- label: "Do not align self",+ title: "Align",+ description:+ "The element's alignment is determined by its parent's align-items property.",value: "auto",+ propertyValues: "align-self: auto;",},{child: <ASStartIcon />,- label: "align-self: flex-start",- value: "start",+ title: "Align",+ description:+ "The element is aligned at the start of the cross axis.",+ value: "flex-start",+ propertyValues: "align-self: flex-start;",},{child: <ASEndIcon />,- label: "align-self: flex-end",- value: "end",+ title: "Align",+ description: "The element is aligned at the end of the cross axis.",+ value: "flex-end",+ propertyValues: "align-self: flex-end;",},{child: <ASCenterIcon />,- label: "align-self: center",+ title: "Align",+ description: "The element is centered along the cross axis.",value: "center",+ propertyValues: "align-self: center;",},{child: <ASStretchIcon />,- label: "align-self: stretch",+ title: "Align",+ description:+ "The element is stretched to fill the entire cross axis.",value: "stretch",+ propertyValues: "align-self: stretch;",},{child: <ASBaselineIcon />,- label: "align-self: baseline",+ title: "Align",+ description:+ "The element is aligned to the baseline of the parent.",value: "baseline",+ propertyValues: "align-self: baseline;",},]}/>@@ -116,6 +133,7 @@ const FlexChildSectionSizing = (props: RenderCategoryProps) => {onReset={onReset}/><ToggleGroupControl+ style={props.currentStyle}onReset={onReset}onValueChange={(value) => {switch (value) {@@ -170,23 +188,38 @@ const FlexChildSectionSizing = (props: RenderCategoryProps) => {items={[{child: <SmallXIcon />,- label: "Don't grow or shrink",+ title: "Flex",+ description: "Don't grow or shrink",value: "none",+ propertyValues: ["flex-grow: 0;", "flex-shrink: 0;"],},{child: <GrowIcon />,- label: "Grow if possible",+ title: "Flex",+ description:+ "Item will expand to take up available space within a flex container if needed, but it will not shrink if there is limited space.",value: "grow",+ propertyValues: ["flex-grow: 1;", "flex-shrink: 0;"],},{child: <ShrinkIcon />,- label: "Shrink if needed",+ title: "Flex",+ description:+ "Item will not grow to take up available space within a flex container, but it will shrink if there is limited space",value: "shrink",+ propertyValues: ["flex-grow: 0;", "flex-shrink: 1;"],},{child: <FlexChildSectionSizingPopover {...props} />,- label: "More sizing options",+ title: "Flex",+ description:+ "More sizing options, set flex-basis, flex-grow, flex-shrink individually",value: "",+ propertyValues: [+ `flex-basis: ${toValue(currentStyle.flexBasis?.value)};`,+ `flex-grow: ${toValue(currentStyle.flexGrow?.value)};`,+ `flex-shrink: ${toValue(currentStyle.flexShrink?.value)};`,+ ],},]}/>@@ -275,7 +308,7 @@ const FlexChildSectionOrder = (props: RenderCategoryProps) => {onReset={() => deleteProperty("order")}/><ToggleGroupControl- onReset={() => deleteProperty("order")}+ style={props.currentStyle}onValueChange={(value) => {switch (value) {case "0":@@ -290,23 +323,31 @@ const FlexChildSectionOrder = (props: RenderCategoryProps) => {items={[{child: <SmallXIcon />,- label: "Dont't change",+ title: "Order",+ description: "Dont't change",value: "0",+ propertyValues: "order: 0;",},{child: <OrderFirstIcon />,- label: "Make first",+ title: "Order",+ description: "Make first",value: "-1",+ propertyValues: "order: -1;",},{child: <OrderLastIcon />,- label: "Make last",+ title: "Order",+ description: "Make last",value: "1",+ propertyValues: "order: 1;",},{child: <FlexChildSectionOrderPopover {...props} />,- label: "Customize order",+ title: "Order",+ description: "Customize order",value: "",+ propertyValues: `order: ${toValue(currentStyle.order?.value)};`,},]}/>@@ -321,7 +362,7 @@ const FlexChildSectionOrderPopover = (props: RenderCategoryProps) => {title="Order"content={<Grid css={{ padding: theme.spacing[9] }}>- <Grid css={{ gridTemplateColumns: "4fr 6fr" }}>+ <Grid css={{ gridTemplateColumns: "4fr 6fr" }} gap={2}><PropertyNamestyle={currentStyle}properties={["order"]}diff --git a/apps/builder/app/builder/features/style-panel/sections/size/size.tsx b/apps/builder/app/builder/features/style-panel/sections/size/size.tsxindex bc9fce9470..9601de5a42 100644--- a/apps/builder/app/builder/features/style-panel/sections/size/size.tsx+++ b/apps/builder/app/builder/features/style-panel/sections/size/size.tsx@@ -132,27 +132,39 @@ export const SizeSection = ({onReset={() => deleteProperty("overflow")}/><ToggleGroupControl- onReset={() => deleteProperty("overflow")}+ style={style}items={[{child: <EyeconOpenIcon />,- label: "Visible",+ title: "Overflow",+ description:+ "Content is fully visible and extends beyond the container if it exceeds its size.",value: "visible",+ propertyValues: "overflow: visible;",},{child: <EyeconClosedIcon />,- label: "Hidden",+ title: "Overflow",+ description:+ "Content that exceeds the container's size is clipped and hidden without scrollbars.",value: "hidden",+ propertyValues: "overflow: hidden;",},{child: <ScrollIcon />,- label: "Scroll",+ title: "Overflow",+ description:+ "Scrollbars are added to the container, allowing users to scroll and view the exceeding content.",value: "scroll",+ propertyValues: "overflow: scroll;",},{child: <AutoScrollIcon />,- label: "Auto",+ title: "Overflow",+ description:+ "Scrollbars are added to the container only when necessary, based on the content size.",value: "auto",+ propertyValues: "overflow: auto;",},]}value={toValue(style.overflow?.value)}diff --git a/apps/builder/app/builder/features/style-panel/sections/typography/typography.tsx b/apps/builder/app/builder/features/style-panel/sections/typography/typography.tsxindex d5e3781256..fbfd1d5047 100644--- a/apps/builder/app/builder/features/style-panel/sections/typography/typography.tsx+++ b/apps/builder/app/builder/features/style-panel/sections/typography/typography.tsx@@ -81,7 +81,7 @@ export const TypographySectionFont = (props: RenderCategoryProps) => {gap: theme.spacing[5],}}>- <Grid css={{ gridTemplateColumns: "4fr 6fr" }}>+ <Grid css={{ gridTemplateColumns: "4fr 6fr" }} gap={2}><PropertyNamestyle={currentStyle}label="Font"@@ -95,7 +95,7 @@ export const TypographySectionFont = (props: RenderCategoryProps) => {deleteProperty={deleteProperty}/></Grid>- <Grid css={{ gridTemplateColumns: "4fr 6fr" }}>+ <Grid css={{ gridTemplateColumns: "4fr 6fr" }} gap={2}><PropertyNamestyle={currentStyle}label="Weight"@@ -109,7 +109,7 @@ export const TypographySectionFont = (props: RenderCategoryProps) => {deleteProperty={deleteProperty}/></Grid>- <Grid css={{ gridTemplateColumns: "4fr 6fr" }}>+ <Grid css={{ gridTemplateColumns: "4fr 6fr" }} gap={2}><PropertyNamestyle={currentStyle}label="Color"@@ -203,55 +203,76 @@ export const TypographySectionAdvanced = (props: RenderCategoryProps) => {}}><ToggleGroupControl+ style={currentStyle}styleSource={getStyleSource(currentStyle.textAlign)}onValueChange={(value) => setTextAlign({ type: "keyword", value })}onReset={() => deleteProperty("textAlign")}value={String(getTextAlign(toValue(currentStyle.textAlign?.value)))}+ properties={["textAlign"]}items={[{child: <TextAlignLeftIcon />,- label: "text-align: left",+ title: "Text Align",+ description: "Aligns the text based on the writing direction.",value: "start",+ propertyValues: "text-align: left;",},{child: <TextAlignCenterIcon />,- label: "text-align: center",+ title: "Text Align",+ description:+ "Centers the text horizontally within its container.",value: "center",+ propertyValues: "text-align: center;",},{child: <TextAlignRightIcon />,- label: "text-align: end",+ title: "Text Align",+ description: "Aligns the text based on the writing direction.",value: "end",+ propertyValues: "text-align: right;",},{child: <TextAlignJustifyIcon />,- label: "text-align: justify",+ title: "Text Align",+ description:+ "Adjusts word spacing to align text to both the left and right edges of the container",value: "justify",+ propertyValues: "text-align: justify;",},]}/><ToggleGroupControl+ style={currentStyle}styleSource={getStyleSource(currentStyle.textDecorationLine)}onValueChange={(value) =>setTextDecorationLine({ type: "keyword", value })}onReset={() => deleteProperty("textDecorationLine")}+ properties={["textDecorationLine"]}value={toValue(currentStyle.textDecorationLine?.value)}items={[{child: <CrossSmallIcon />,- label: "None",+ title: "Text Decoration Line",+ description: "No decoration is applied to the text.",value: "none",+ propertyValues: "text-decoration-line: none;",},{+ title: "Text Decoration Line",child: <TextUnderlineIcon />,- label: "text-decoration: underline",+ description: " Adds a horizontal line underneath the text.",value: "underline",+ propertyValues: "text-decoration-line: underline;",},{+ title: "Text Decoration Line",child: <TextStrikethroughIcon />,- label: "text-decoration: line-through",+ description:+ "Draws a horizontal line through the middle of the text.",value: "line-through",+ propertyValues: "text-decoration-line: line-through;",},]}/>@@ -264,50 +285,72 @@ export const TypographySectionAdvanced = (props: RenderCategoryProps) => {}}><ToggleGroupControl+ style={currentStyle}styleSource={getStyleSource(currentStyle.textTransform)}onValueChange={(value) =>setTextTransform({ type: "keyword", value })}+ properties={["textTransform"]}onReset={() => deleteProperty("textTransform")}value={toValue(currentStyle.textTransform?.value)}items={[{child: <CrossSmallIcon />,- label: "None",+ title: "Text Transform",+ description:+ "No transformation is applied to the text. The text appears as it is.",value: "none",+ propertyValues: "text-transform: none;",},{child: <TextUppercaseIcon />,- label: "text-transform: uppercase",+ title: "Text Transform",+ description:+ "Transforms the text to appear in all uppercase letters.",value: "uppercase",+ propertyValues: "text-transform: uppercase;",},{child: <TextCapitalizeIcon />,- label: "text-transform: capitalize",+ title: "Text Transform",+ description:+ "Transforms the first character of each word to uppercase, while the remaining characters are in lowercase.",value: "capitalize",+ propertyValues: "text-transform: capitalize;",},{child: <TextLowercaseIcon />,- label: "text-transform: lowercase",+ title: "Text Transform",+ description:+ " Transforms the text to appear in all lowercase letters.",value: "lowercase",+ propertyValues: "text-transform: lowercase;",},]}/><ToggleGroupControl+ style={currentStyle}styleSource={getStyleSource(currentStyle.fontStyle)}onValueChange={(value) => setFontStyle({ type: "keyword", value })}onReset={() => deleteProperty("fontStyle")}+ properties={["fontStyle"]}value={toValue(currentStyle.fontStyle?.value)}items={[{child: <CrossSmallIcon />,- label: "None",+ title: "Font Style",+ description:+ "The default value. The text appears in a normal, upright style.",value: "normal",+ propertyValues: "font-style: normal;",},{child: <TextItalicIcon />,- label: "font-style: italic",+ title: "Font Style",+ description:+ "The text appears in italic style, where it is slanted to the right.",value: "italic",+ propertyValues: "font-style: italic;",},]}/>@@ -328,8 +371,14 @@ export const TypographySectionAdvancedPopover = (<FloatingPaneltitle="Advanced Typography"content={- <Grid css={{ padding: theme.spacing[9], gap: theme.spacing[9] }}>- <Grid css={{ gridTemplateColumns: "4fr 6fr" }}>+ <Grid+ css={{+ padding: theme.spacing[9],+ gap: theme.spacing[9],+ width: theme.spacing[30],+ }}+ >+ <Grid css={{ gridTemplateColumns: "4fr 6fr" }} gap={2}><PropertyNamestyle={currentStyle}properties={["whiteSpace"]}@@ -351,21 +400,27 @@ export const TypographySectionAdvancedPopover = (onReset={() => deleteProperty("direction")}/><ToggleGroupControl+ style={currentStyle}onValueChange={(value) =>setDirection({ type: "keyword", value })}- onReset={() => deleteProperty("direction")}value={toValue(currentStyle.direction?.value)}items={[{child: <TextDirectionLTRIcon />,- label: "Left to Right",+ title: "Direction",+ description:+ "Sets the text direction to left-to-right, which is the default for most languages.",value: "ltr",+ propertyValues: "direction: ltr;",},{child: <TextDirectionRTLIcon />,- label: "Right to Left",+ title: "Direction",+ description:+ "Sets the text direction to right-to-left, typically used for languages such as Arabic or Hebrew.",value: "rtl",+ propertyValues: "direction: rtl;",},]}/>@@ -378,19 +433,25 @@ export const TypographySectionAdvancedPopover = (onReset={() => deleteProperty("hyphens")}/><ToggleGroupControl+ style={currentStyle}onValueChange={(value) => setHyphens({ type: "keyword", value })}- onReset={() => deleteProperty("hyphens")}value={toValue(currentStyle.hyphens?.value)}items={[{child: <CrossSmallIcon />,- label: "None",+ title: "Hyphens",+ description:+ "Disables hyphenation of words. Words will not be hyphenated even if they exceed the width of their container.",value: "manual",+ propertyValues: "hyphens: none;",},{child: <TextHyphenIcon />,- label: "Auto",+ title: "Hyphens",+ description:+ "Enables automatic hyphenation of words. The browser will hyphenate long words at appropriate points to fit within the width of their container.",value: "auto",+ propertyValues: "hyphens: auto;",},]}/>@@ -403,21 +464,27 @@ export const TypographySectionAdvancedPopover = (onReset={() => deleteProperty("textOverflow")}/><ToggleGroupControl+ style={currentStyle}onValueChange={(value) =>setTextOverflow({ type: "keyword", value })}- onReset={() => deleteProperty("textOverflow")}value={toValue(currentStyle.textOverflow?.value)}items={[{child: <CrossSmallIcon />,- label: "None",+ title: "Text Overflow",+ description:+ "The overflowing text is clipped and hidden without any indication.",value: "clip",+ propertyValues: "text-overflow: clip;",},{child: <TextTruncateIcon />,- label: "Ellipsis",+ title: "Text Overflow",+ description:+ "The overflowing text is truncated with an ellipsis (...) to indicate that there is more content. To make the text-overflow: ellipsis property work, you need to set the following CSS properties: white-space: nowrap; overflow: hidden;",value: "ellipsis",+ propertyValues: "text-overflow: ellipsis;",},]}/>diff --git a/apps/builder/app/builder/features/style-panel/shared/property-name.tsx b/apps/builder/app/builder/features/style-panel/shared/property-name.tsxindex 904660c9d7..ded9422a75 100644--- a/apps/builder/app/builder/features/style-panel/shared/property-name.tsx+++ b/apps/builder/app/builder/features/style-panel/shared/property-name.tsx@@ -1,4 +1,4 @@-import { useState, type ReactElement } from "react";+import { useState, type ReactElement, type ReactNode } from "react";import { useStore } from "@nanostores/react";import {type StyleProperty,@@ -116,13 +116,15 @@ const getDescription = (properties: StyleProperty[]) => {const TooltipContent = ({title,description,+ scrollableContent,properties,style,onReset,}: {title?: string;- description?: React.ReactNode;+ description?: ReactNode;properties: StyleProperty[];+ scrollableContent?: ReactNode;style: StyleInfo;onReset?: undefined | (() => void);}) => {@@ -193,7 +195,7 @@ const TooltipContent = ({cursor: "text",}}>- {properties.map(toProperty).join("\n")}+ {scrollableContent ?? properties.map(toProperty).join("\n")}</Text></ScrollArea>{descriptionWithFallback && <Text>{descriptionWithFallback}</Text>}@@ -255,6 +257,7 @@ export const PropertyTooltip = ({openWithClick = false,title,description,+ scrollableContent,properties,style,onReset,@@ -265,7 +268,8 @@ export const PropertyTooltip = ({}: {openWithClick?: boolean;title?: string;- description?: React.ReactNode;+ description?: ReactNode;+ scrollableContent?: ReactNode;properties: StyleProperty[];style: StyleInfo;onReset?: undefined | (() => void);@@ -302,6 +306,7 @@ export const PropertyTooltip = ({<TooltipContenttitle={title}description={description}+ scrollableContent={scrollableContent}properties={properties}style={style}onReset={@@ -314,7 +319,6 @@ export const PropertyTooltip = ({}/>}- disableHoverableContent={onReset === undefined}>{children}</Tooltip>@@ -326,7 +330,7 @@ type PropertyNameInternalProps = {properties: StyleProperty[];label: string | ReactElement;title?: string;- description?: React.ReactNode;+ description?: ReactNode;onReset?: () => void;disabled?: boolean;};@@ -380,7 +384,7 @@ type PropertyNameProps = {properties: StyleProperty[];label: string | ReactElement;title?: string;- description?: React.ReactNode;+ description?: ReactNode;onReset: () => void;};@@ -407,7 +411,7 @@ type NonResetablePropertyNameProps = {properties: StyleProperty[];label: string | ReactElement;title?: string;- description?: React.ReactNode;+ description?: ReactNode;disabled?: boolean;};/**diff --git a/apps/builder/app/builder/features/style-panel/style-sections.tsx b/apps/builder/app/builder/features/style-panel/style-sections.tsxindex 164e07176c..8df761f8c0 100644--- a/apps/builder/app/builder/features/style-panel/style-sections.tsx+++ b/apps/builder/app/builder/features/style-panel/style-sections.tsx@@ -79,7 +79,7 @@ export const renderProperty = ({}return (- <Grid key={property} css={{ gridTemplateColumns: "4fr 6fr" }}>+ <Grid key={property} css={{ gridTemplateColumns: "4fr 6fr" }} gap={2}><PropertyNamestyle={currentStyle}properties={[property]}