Skip to content

Commit

Permalink
fix(input): remove fixed height of label container (geist-org#727)
Browse files Browse the repository at this point in the history
* fix(input): remove fixed height of label container

* test: update snapshots for height changes

Co-authored-by: zexun.liu <[email protected]>
Co-authored-by: unix <[email protected]>
  • Loading branch information
3 people authored Feb 12, 2022
1 parent c8a0d64 commit d2fc8d9
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ LoadedCheerio {
--input-height: calc(2.25 * 16px);
font-size: calc(0.875 * 16px);
width: initial;
height: var(--input-height);
padding: 0 0 0 0;
margin: 0 0 0 0;
}
Expand Down Expand Up @@ -208,7 +207,6 @@ LoadedCheerio {
--input-height: calc(2.25 * 16px);
font-size: calc(0.875 * 16px);
width: initial;
height: var(--input-height);
padding: 0 0 0 0;
margin: 0 0 0 0;
}
Expand Down Expand Up @@ -524,7 +522,6 @@ LoadedCheerio {
--input-height: calc(2.25 * 16px);
font-size: calc(0.875 * 16px);
width: initial;
height: var(--input-height);
padding: 0 0 0 0;
margin: 0 0 0 0;
}
Expand Down Expand Up @@ -651,7 +648,6 @@ LoadedCheerio {
--input-height: calc(2.25 * 16px);
font-size: calc(0.875 * 16px);
width: initial;
height: var(--input-height);
padding: 0 0 0 0;
margin: 0 0 0 0;
}
Expand Down Expand Up @@ -1030,7 +1026,6 @@ LoadedCheerio {
--input-height: calc(2.25 * 16px);
font-size: calc(0.875 * 16px);
width: initial;
height: var(--input-height);
padding: 0 0 0 0;
margin: 0 0 0 0;
}
Expand Down Expand Up @@ -1157,7 +1152,6 @@ LoadedCheerio {
--input-height: calc(2.25 * 16px);
font-size: calc(0.875 * 16px);
width: initial;
height: var(--input-height);
padding: 0 0 0 0;
margin: 0 0 0 0;
}
Expand Down Expand Up @@ -1473,7 +1467,6 @@ LoadedCheerio {
--input-height: calc(2.25 * 16px);
font-size: calc(0.875 * 16px);
width: initial;
height: var(--input-height);
padding: 0 0 0 0;
margin: 0 0 0 0;
}
Expand Down Expand Up @@ -1600,7 +1593,6 @@ LoadedCheerio {
--input-height: calc(2.25 * 16px);
font-size: calc(0.875 * 16px);
width: initial;
height: var(--input-height);
padding: 0 0 0 0;
margin: 0 0 0 0;
}
Expand Down
8 changes: 0 additions & 8 deletions components/input/__tests__/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ exports[`Input should be work with icon 1`] = `
--input-height: calc(2.25 * 16px);
font-size: calc(0.875 * 16px);
width: initial;
height: var(--input-height);
padding: 0 0 0 0;
margin: 0 0 0 0;
}
Expand Down Expand Up @@ -148,7 +147,6 @@ exports[`Input should be work with icon 1`] = `
--input-height: calc(2.25 * 16px);
font-size: calc(0.875 * 16px);
width: initial;
height: var(--input-height);
padding: 0 0 0 0;
margin: 0 0 0 0;
}
Expand Down Expand Up @@ -277,7 +275,6 @@ exports[`Input should be work with label 1`] = `
--input-height: calc(2.25 * 16px);
font-size: calc(0.875 * 16px);
width: initial;
height: var(--input-height);
padding: 0 0 0 0;
margin: 0 0 0 0;
}
Expand Down Expand Up @@ -402,7 +399,6 @@ exports[`Input should be work with label 1`] = `
--input-height: calc(2.25 * 16px);
font-size: calc(0.875 * 16px);
width: initial;
height: var(--input-height);
padding: 0 0 0 0;
margin: 0 0 0 0;
}
Expand Down Expand Up @@ -517,7 +513,6 @@ exports[`Input should be work with label 1`] = `
--input-height: calc(2.25 * 16px);
font-size: calc(0.875 * 16px);
width: initial;
height: var(--input-height);
padding: 0 0 0 0;
margin: 0 0 0 0;
}
Expand Down Expand Up @@ -618,7 +613,6 @@ exports[`Input should work with different status 1`] = `
--input-height: calc(2.25 * 16px);
font-size: calc(0.875 * 16px);
width: initial;
height: var(--input-height);
padding: 0 0 0 0;
margin: 0 0 0 0;
}
Expand Down Expand Up @@ -715,7 +709,6 @@ exports[`Input should work with different status 1`] = `
--input-height: calc(2.25 * 16px);
font-size: calc(0.875 * 16px);
width: initial;
height: var(--input-height);
padding: 0 0 0 0;
margin: 0 0 0 0;
}
Expand Down Expand Up @@ -812,7 +805,6 @@ exports[`Input should work with different status 1`] = `
--input-height: calc(2.25 * 16px);
font-size: calc(0.875 * 16px);
width: initial;
height: var(--input-height);
padding: 0 0 0 0;
margin: 0 0 0 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ exports[`InputPassword should render correctly 1`] = `
--input-height: calc(2.25 * 16px);
font-size: calc(0.875 * 16px);
width: initial;
height: var(--input-height);
padding: 0 0 0 0;
margin: 0 0 0 0;
}
Expand Down
1 change: 0 additions & 1 deletion components/input/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ const InputComponent = React.forwardRef<
--input-height: ${SCALES.height(2.25)};
font-size: ${SCALES.font(0.875)};
width: ${SCALES.width(1, 'initial')};
height: var(--input-height);
padding: ${SCALES.pt(0)} ${SCALES.pr(0)} ${SCALES.pb(0)} ${SCALES.pl(0)};
margin: ${SCALES.mt(0)} ${SCALES.mr(0)} ${SCALES.mb(0)} ${SCALES.ml(0)};
}
Expand Down

0 comments on commit d2fc8d9

Please sign in to comment.