Skip to content

Commit

Permalink
Merge pull request #1383 from Wizleap-Inc/fix/number-input-height
Browse files Browse the repository at this point in the history
Fix/number-input-height
  • Loading branch information
ichi-h authored Oct 10, 2024
2 parents 30e6274 + 9286a58 commit 5fd12b8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .changeset/forty-candles-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@wizleap-inc/wiz-ui-react": patch
"@wizleap-inc/wiz-ui-next": patch
"@wizleap-inc/wiz-ui-styles": patch
---

Fix(number-input): height
7 changes: 4 additions & 3 deletions packages/styles/bases/number-input.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ export const input = style({
minWidth: "30%",
border: "none",
outline: "none",
padding: `${THEME.spacing.xs2} ${THEME.spacing.xs}`,
lineHeight: THEME.fontSize.xl,
flexGrow: 1,
fontSize: THEME.fontSize.sm,
lineHeight: THEME.fontSize.lg,
padding: `${THEME.spacing.sm} ${THEME.spacing.xs}`,
color: THEME.color.gray["800"],
"::placeholder": {
color: THEME.color.gray["500"],
Expand All @@ -56,6 +56,7 @@ export const button = style({
borderColor: THEME.color.gray["400"],
border: "none",
borderLeft: `1px solid ${THEME.color.gray["400"]}`,
height: "100%",
background: "transparent",
fill: THEME.color.gray["500"],
selectors: {
Expand All @@ -78,7 +79,7 @@ export const button = style({
});

export const arrowIcon = style([
fontSizeStyle.xs2,
fontSizeStyle.xs,
{
transform: "scale(2)",
pointerEvents: "none",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
v-bind="restProps"
:disabled="disabled"
/>
<WizVStack>
<WizVStack justify="center" nowrap>
<button
type="button"
@click="handleStepUp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const NumberInput = (props: Props) => {
disabled={disabled}
{...rest}
/>
<WizVStack>
<WizVStack justify="center" nowrap>
<button
type="button"
onClick={handleStepUp}
Expand Down

0 comments on commit 5fd12b8

Please sign in to comment.