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

Commit

Permalink
fix: Updated sm size for DatePicker, Input, Number Input, and Search …
Browse files Browse the repository at this point in the history
…Input
  • Loading branch information
albinAppsmith committed Jul 1, 2024
1 parent a692320 commit fe7a7cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
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

0 comments on commit fe7a7cb

Please sign in to comment.