Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

fix: Updated sm size for DatePicker, Input, Number Input, and Search Input #746

Merged
merged 2 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/smart-socks-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@appsmithorg/design-system": patch
---

fix: Updated sm size for DatePicker, Input, Number Input, and Search Input
4 changes: 2 additions & 2 deletions packages/design-system/src/Input/Input.styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Variables = css`
--input-padding-x: var(--ads-v2-spaces-2); // padding left and right
--input-padding-y: var(--ads-v2-spaces-2); // padding top and bottom
--input-font-size: var(--ads-v2-font-size-2);
--input-height: 22px;
--input-height: 24px;
`;

const getSizes = (size: InputSizes, component: "input" | "textarea") => {
Expand All @@ -24,7 +24,7 @@ const getSizes = (size: InputSizes, component: "input" | "textarea") => {
--input-padding-x: var(--ads-v2-spaces-2);
--input-padding-y: var(--ads-v2-spaces-2);
--input-font-size: var(--ads-v2-font-size-2);
--input-height: ${component === "input" ? "22px" : "60px"};
--input-height: ${component === "input" ? "24px" : "60px"};
`,
md: css`
--input-padding-x: var(--ads-v2-spaces-3);
Expand Down
2 changes: 0 additions & 2 deletions packages/design-system/src/SearchInput/SearchInput.styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ const Sizes = {
--input-font-size: 14px;
--input-padding-x: var(--ads-v2-spaces-3); // padding left and right
--input-padding-y: var(--ads-v2-spaces-2); // padding top and bottom
--input-height: 28px;
`,
md: css`
--input-padding-x: var(--ads-v2-spaces-3);
--input-padding-y: var(--ads-v2-spaces-3);
--input-font-size: var(--ads-v2-font-size-4);
--input-height: 36px;
`,
};

Expand Down
Loading