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.

review amendments

Sultan8b5c36d1f9be
diff --git a/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.tsx b/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.tsx
index eb3e902504..b4af3b72d3 100644
--- a/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.tsx
+++ b/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.tsx
@@ -9,6 +9,7 @@ import {
ComboboxListboxItem,
numericScrubControl,
TextFieldIconButton,
+ styled,
} from "@webstudio-is/design-system";
import { ChevronDownIcon } from "@webstudio-is/icons";
import {
@@ -293,12 +294,12 @@ export const CssValueInput = ({
const isCurrentBreakpoint = useIsFromCurrentBreakpoint(property);
const prefix = icon && (
- <TextFieldIconButton
+ <CssValueInputIconButton
state={isCurrentBreakpoint ? "set" : undefined}
css={value.type == "unit" ? { cursor: "ew-resize" } : {}}
>
{icon}
- </TextFieldIconButton>
+ </CssValueInputIconButton>
);
const suffixRef = useRef<HTMLDivElement | null>(null);
@@ -365,3 +366,26 @@ export const CssValueInput = ({
</ComboboxPopper>
);
};
+
+const CssValueInputIconButton = styled(TextFieldIconButton, {
+ variants: {
+ state: {
+ set: {
+ backgroundColor: "$blue4",
+ color: "$blue11",
+ "&:hover": {
+ backgroundColor: "$blue4",
+ color: "$blue11",
+ },
+ },
+ inherited: {
+ backgroundColor: "$orange4",
+ color: "$orange11",
+ "&:hover": {
+ backgroundColor: "$orange4",
+ color: "$orange11",
+ },
+ },
+ },
+ },
+});
diff --git a/apps/designer/app/designer/shared/inspector/collapsible-section.tsx b/apps/designer/app/designer/shared/inspector/collapsible-section.tsx
index d94013a2f7..e25374c8f6 100644
--- a/apps/designer/app/designer/shared/inspector/collapsible-section.tsx
+++ b/apps/designer/app/designer/shared/inspector/collapsible-section.tsx
@@ -58,7 +58,7 @@ export const CollapsibleSection = ({
<Flex
align="center"
justify="center"
- css={{ marginRight: "-$space$1", opacity: "$opacity$1" }}
+ css={{ marginRight: "-$space$1", color: "$slate9" }}
>
{isOpenFinal ? <ChevronLeftIcon /> : <ChevronRightIcon />}
</Flex>
diff --git a/packages/design-system/src/components/combobox.tsx b/packages/design-system/src/components/combobox.tsx
index 34bbd7b386..c3aa22d7f9 100644
--- a/packages/design-system/src/components/combobox.tsx
+++ b/packages/design-system/src/components/combobox.tsx
@@ -82,9 +82,7 @@ export const ComboboxListboxItem = forwardRef(ListboxItemBase);
export const ComboboxPopper = Popper;
-export const ComboboxPopperContent = styled(PopperContent, {
- zIndex: 10,
-});
+export const ComboboxPopperContent = PopperContent;
export const ComboboxPopperAnchor = PopperAnchor;
diff --git a/packages/design-system/src/components/text-field.tsx b/packages/design-system/src/components/text-field.tsx
index 279d02f91c..0efd5fbcc0 100644
--- a/packages/design-system/src/components/text-field.tsx
+++ b/packages/design-system/src/components/text-field.tsx
@@ -55,22 +55,6 @@ export const TextFieldIconButton = styled(
color: "white",
},
},
- set: {
- backgroundColor: "$blue4",
- color: "$blue11",
- "&:hover": {
- backgroundColor: "$blue4",
- color: "$blue11",
- },
- },
- inherited: {
- backgroundColor: "$orange4",
- color: "$orange11",
- "&:hover": {
- backgroundColor: "$orange4",
- color: "$orange11",
- },
- },
},
},
},