Skip to content

Commit b797a81

Browse files
committed
Add horizontal spacing around the Input
1 parent 3c3f69f commit b797a81

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/chakra-components/input.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ const Input = <
3636
gridArea: "1 / 1 / 2 / 3",
3737
gridTemplateColumns: "0 min-content",
3838
color: "inherit",
39+
marginX: "0.125rem",
40+
paddingY: "0.125rem",
3941
_after: {
4042
content: 'attr(data-value) " "',
4143
visibility: "hidden",
@@ -44,21 +46,18 @@ const Input = <
4446
...spacingSx,
4547
},
4648
};
47-
4849
const containerSx = chakraStyles?.inputContainer
4950
? chakraStyles.inputContainer(initialContainerSx, props)
5051
: initialContainerSx;
5152

5253
const initialInputSx: CSSObject = {
5354
label: "input",
5455
color: "inherit",
55-
bg: 0,
56+
background: 0,
5657
opacity: isHidden ? 0 : 1,
5758
width: "100%",
58-
py: "0.125rem",
5959
...spacingSx,
6060
};
61-
6261
const inputSx = chakraStyles?.input
6362
? chakraStyles.input(initialInputSx, props)
6463
: initialInputSx;

0 commit comments

Comments
 (0)