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.

Merge branch 'main' into feature-style-panel-text-control

Oleg Isonen0a0257ef7913
diff --cc apps/designer/app/designer/features/props-panel/props-panel.tsx
index c16157cf18,084a501d25..831b7f3927
--- a/apps/designer/app/designer/features/props-panel/props-panel.tsx
+++ b/apps/designer/app/designer/features/props-panel/props-panel.tsx
@@@ -56,30 -137,20 +137,21 @@@ const Property = (
css={{ gridTemplateColumns: "1fr 1fr auto", alignItems: "center" }}
>
<Combobox
- name="prop"
- placeholder="Property"
items={allProps}
value={prop}
+ itemToString={(item) => item ?? ""}
- onItemSelect={(value) => {
- onChange(id, "prop", value as string);
+ onItemSelect={(value: PropertyProps["value"] | null) => {
+ if (value !== null) {
+ onChange(id, "prop", value);
+ }
}}
- renderTextField={({ inputProps, toggleProps }) => (
- <ComboboxTextField
- toggleProps={toggleProps}
- inputProps={{
- ...inputProps,
- readOnly: required,
- state: isInvalidProp ? "invalid" : undefined,
- }}
- />
- )}
- renderPopperContent={(props) => (
- <ComboboxPopperContent {...props} align="start" sideOffset={5} />
- )}
+ onSubmit={(value) => {
+ onChange(id, "prop", value);
+ }}
+ isInvalid={isInvalid}
+ isReadonly={required}
/>
-
- {isInvalidProp ? (
+ {isInvalid ? (
<Tooltip content={`Invalid property name: ${prop}`}>
<ExclamationTriangleIcon width={12} height={12} />
</Tooltip>
diff --cc packages/design-system/src/components/menu.tsx
index 9de5d3b616,0019f338ad..a4b7fb09c0
--- a/packages/design-system/src/components/menu.tsx
+++ b/packages/design-system/src/components/menu.tsx
@@@ -23,12 -24,12 +23,12 @@@ export const baseItemCss = css(
export const itemCss = css(baseItemCss, {
position: "relative",
color: "$hiContrast",
- "&:focus, &[data-found]": {
+ "&:focus, &[data-found], &[aria-selected=true]": {
outline: "none",
- backgroundColor: "$blue9",
+ backgroundColor: "$blue10",
color: "white",
},
- "&[data-disabled]": {
+ "&[data-disabled], &[aria-disabled]": {
color: "$slate9",
},
});