Skip to content

Commit 26076ab

Browse files
authored
Fix horiz padding on autoResize (#1368)
1 parent 068c904 commit 26076ab

File tree

7 files changed

+21
-0
lines changed

7 files changed

+21
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.9.13] - 2020-08-24
9+
10+
### Fixed
11+
12+
- Horizontal padding for inputs using `autoResize` prop
13+
814
## [0.9.12] - 2020-08-24
915

1016
### Added

packages/components/src/Form/Fields/FieldText/__snapshots__/FieldText.test.tsx.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ exports[`A FieldText with default label 1`] = `
7474
width: 100%;
7575
}
7676
77+
.c5 .c8 input,
7778
.c5 .c8 span {
7879
padding: 0 0.5rem;
7980
}
@@ -250,6 +251,7 @@ exports[`A FieldText with label inline 1`] = `
250251
width: 100%;
251252
}
252253
254+
.c5 .c9 input,
253255
.c5 .c9 span {
254256
padding: 0 0.5rem;
255257
}

packages/components/src/Form/Fieldset/__snapshots__/Fieldset.test.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ exports[`Fieldset 1`] = `
104104
width: 100%;
105105
}
106106
107+
.c9 .c12 input,
107108
.c9 .c12 span {
108109
padding: 0 0.5rem;
109110
}

packages/components/src/Form/Inputs/InputSearch/__snapshots__/InputSearch.test.tsx.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ exports[`InputSearch default 1`] = `
110110
width: 100%;
111111
}
112112
113+
.c0 .c4 input,
113114
.c0 .c4 span {
114115
padding: 0 0.5rem;
115116
}
@@ -232,6 +233,7 @@ exports[`InputSearch hideSearchIcon removes the icon 1`] = `
232233
width: 100%;
233234
}
234235
236+
.c0 .c2 input,
235237
.c0 .c2 span {
236238
padding: 0 0.5rem;
237239
}

packages/components/src/Form/Inputs/InputText/InputText.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ export const InputText = styled(InputTextLayout)<InputTextProps>`
305305
height: 100%;
306306
max-width: 100%;
307307
width: 100%;
308+
input,
308309
span {
309310
padding: 0 ${({ theme: { space } }) => space.xsmall};
310311
}

packages/components/src/Form/Inputs/InputText/__snapshots__/InputText.test.tsx.snap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ exports[`InputText default 1`] = `
7474
width: 100%;
7575
}
7676
77+
.c0 .c2 input,
7778
.c0 .c2 span {
7879
padding: 0 0.5rem;
7980
}
@@ -176,6 +177,7 @@ exports[`InputText should accept disabled 1`] = `
176177
width: 100%;
177178
}
178179
180+
.c0 .c2 input,
179181
.c0 .c2 span {
180182
padding: 0 0.5rem;
181183
}
@@ -281,6 +283,7 @@ exports[`InputText should accept readOnly 1`] = `
281283
width: 100%;
282284
}
283285
286+
.c0 .c2 input,
284287
.c0 .c2 span {
285288
padding: 0 0.5rem;
286289
}
@@ -382,6 +385,7 @@ exports[`InputText should accept required 1`] = `
382385
width: 100%;
383386
}
384387
388+
.c0 .c2 input,
385389
.c0 .c2 span {
386390
padding: 0 0.5rem;
387391
}
@@ -483,6 +487,7 @@ exports[`InputText with a placeholder 1`] = `
483487
width: 100%;
484488
}
485489
490+
.c0 .c2 input,
486491
.c0 .c2 span {
487492
padding: 0 0.5rem;
488493
}
@@ -584,6 +589,7 @@ exports[`InputText with a value 1`] = `
584589
width: 100%;
585590
}
586591
592+
.c0 .c2 input,
587593
.c0 .c2 span {
588594
padding: 0 0.5rem;
589595
}
@@ -685,6 +691,7 @@ exports[`InputText with aria-describedby 1`] = `
685691
width: 100%;
686692
}
687693
694+
.c0 .c2 input,
688695
.c0 .c2 span {
689696
padding: 0 0.5rem;
690697
}
@@ -786,6 +793,7 @@ exports[`InputText with name and id 1`] = `
786793
width: 100%;
787794
}
788795
796+
.c0 .c2 input,
789797
.c0 .c2 span {
790798
padding: 0 0.5rem;
791799
}

packages/components/src/Form/__snapshots__/Form.test.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ exports[`Form with one child 1`] = `
8989
width: 100%;
9090
}
9191
92+
.c6 .c9 input,
9293
.c6 .c9 span {
9394
padding: 0 0.5rem;
9495
}

0 commit comments

Comments
 (0)