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.

style fixes for buttons

Oleg Isonend63d7ba93c1a
diff --git a/apps/designer/app/auth/login.tsx b/apps/designer/app/auth/login.tsx
index 9453ee5d47..0c1bf2fc25 100644
--- a/apps/designer/app/auth/login.tsx
+++ b/apps/designer/app/auth/login.tsx
@@ -92,7 +92,7 @@ export const Login = ({ errorMessage }: { errorMessage: string }) => {
placeholder="Auth secret"
css={{ flexGrow: 1 }}
/>
- <Button size={2}>Login</Button>
+ <Button>Login</Button>
</Flex>
) : (
<LoginButton
diff --git a/apps/designer/app/dashboard/components/card.tsx b/apps/designer/app/dashboard/components/card.tsx
index 2a6e687863..3ef4dd94d0 100644
--- a/apps/designer/app/dashboard/components/card.tsx
+++ b/apps/designer/app/dashboard/components/card.tsx
@@ -65,7 +65,6 @@ export const SelectProjectCard = ({
}}
/>
<Button
- size={2}
disabled={
newProject.length === 0 || transition.state === "submitting"
}
@@ -81,9 +80,7 @@ export const SelectProjectCard = ({
) : null}
</Form>
) : (
- <Button onClick={handleOpen} size={2}>
- Open
- </Button>
+ <Button onClick={handleOpen}>Open</Button>
)}
</Flex>
</Card>
diff --git a/apps/designer/app/designer/features/style-panel/shared/css-value-input/unit-select.tsx b/apps/designer/app/designer/features/style-panel/shared/css-value-input/unit-select.tsx
index c3c65843e7..dc2f8aad55 100644
--- a/apps/designer/app/designer/features/style-panel/shared/css-value-input/unit-select.tsx
+++ b/apps/designer/app/designer/features/style-panel/shared/css-value-input/unit-select.tsx
@@ -83,13 +83,13 @@ const StyledTrigger = styled(SelectPrimitive.SelectTrigger, {
display: "inline-flex",
alignItems: "center",
color: "$hiContrast",
+ "&:hover": {
+ backgroundColor: "$slate6",
+ },
"&:focus": {
backgroundColor: "$blue10",
color: "$loContrast",
},
- "&:hover": {
- backgroundColor: "$slate6",
- },
});
type UnitSelectProps = {
diff --git a/apps/designer/app/designer/shared/assets/asset-upload.tsx b/apps/designer/app/designer/shared/assets/asset-upload.tsx
index ffec2741a5..5f7c107f60 100644
--- a/apps/designer/app/designer/shared/assets/asset-upload.tsx
+++ b/apps/designer/app/designer/shared/assets/asset-upload.tsx
@@ -45,7 +45,6 @@ export const AssetUpload = ({ type }: AssetUploadProps) => {
variant="blue"
type="button"
onClick={() => inputRef?.current?.click()}
- size={2}
css={{ flexGrow: 1 }}
>
<Flex align="center" gap={1}>
diff --git a/packages/design-system/src/components/button.tsx b/packages/design-system/src/components/button.tsx
index 07517cc519..7dd34a8947 100644
--- a/packages/design-system/src/components/button.tsx
+++ b/packages/design-system/src/components/button.tsx
@@ -41,7 +41,7 @@ export const Button = styled("button", {
size: {
"1": {
borderRadius: "$1",
- height: "$5",
+ height: 28, // @todo waiting for the sizing scale
px: "$3",
fontSize: "$1",
lineHeight: "$sizes$5",