Skip to content

Commit 1781221

Browse files
fix: fixed issue with textinput styling after new release (#4466)
* fix: fixed issue with textinput styling after new release * fix: updated snapshots
1 parent 0df24ee commit 1781221

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

src/components/TextInput/TextInputFlat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,11 +443,11 @@ const styles = StyleSheet.create({
443443
labelContainer: {
444444
paddingTop: 0,
445445
paddingBottom: 0,
446-
flex: 1,
446+
flexGrow: 1,
447447
},
448448
input: {
449449
margin: 0,
450-
flex: 1,
450+
flexGrow: 1,
451451
},
452452
inputFlat: {
453453
paddingTop: 24,

src/components/TextInput/TextInputOutlined.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,11 +429,11 @@ export default TextInputOutlined;
429429
const styles = StyleSheet.create({
430430
labelContainer: {
431431
paddingBottom: 0,
432-
flex: 1,
432+
flexGrow: 1,
433433
},
434434
input: {
435435
margin: 0,
436-
flex: 1,
436+
flexGrow: 1,
437437
},
438438
inputOutlined: {
439439
paddingTop: 8,

src/components/__tests__/__snapshots__/TextInput.test.tsx.snap

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ exports[`call onPress when affix adornment pressed 1`] = `
3838
style={
3939
[
4040
{
41-
"flex": 1,
41+
"flexGrow": 1,
4242
"paddingBottom": 0,
4343
"paddingTop": 0,
4444
},
@@ -187,7 +187,7 @@ exports[`call onPress when affix adornment pressed 1`] = `
187187
style={
188188
[
189189
{
190-
"flex": 1,
190+
"flexGrow": 1,
191191
"margin": 0,
192192
},
193193
{},
@@ -337,7 +337,7 @@ exports[`correctly applies a component as the text label 1`] = `
337337
style={
338338
[
339339
{
340-
"flex": 1,
340+
"flexGrow": 1,
341341
"paddingBottom": 0,
342342
"paddingTop": 0,
343343
},
@@ -503,7 +503,7 @@ exports[`correctly applies a component as the text label 1`] = `
503503
style={
504504
[
505505
{
506-
"flex": 1,
506+
"flexGrow": 1,
507507
"margin": 0,
508508
},
509509
{},
@@ -577,7 +577,7 @@ exports[`correctly applies cursorColor prop 1`] = `
577577
style={
578578
[
579579
{
580-
"flex": 1,
580+
"flexGrow": 1,
581581
"paddingBottom": 0,
582582
"paddingTop": 0,
583583
},
@@ -727,7 +727,7 @@ exports[`correctly applies cursorColor prop 1`] = `
727727
style={
728728
[
729729
{
730-
"flex": 1,
730+
"flexGrow": 1,
731731
"margin": 0,
732732
},
733733
{},
@@ -801,7 +801,7 @@ exports[`correctly applies default textAlign based on default RTL 1`] = `
801801
style={
802802
[
803803
{
804-
"flex": 1,
804+
"flexGrow": 1,
805805
"paddingBottom": 0,
806806
"paddingTop": 0,
807807
},
@@ -951,7 +951,7 @@ exports[`correctly applies default textAlign based on default RTL 1`] = `
951951
style={
952952
[
953953
{
954-
"flex": 1,
954+
"flexGrow": 1,
955955
"margin": 0,
956956
},
957957
{},
@@ -1018,7 +1018,7 @@ exports[`correctly applies height to multiline Outline TextInput 1`] = `
10181018
style={
10191019
[
10201020
{
1021-
"flex": 1,
1021+
"flexGrow": 1,
10221022
"paddingBottom": 0,
10231023
},
10241024
{
@@ -1207,7 +1207,7 @@ exports[`correctly applies height to multiline Outline TextInput 1`] = `
12071207
style={
12081208
[
12091209
{
1210-
"flex": 1,
1210+
"flexGrow": 1,
12111211
"margin": 0,
12121212
},
12131213
{
@@ -1282,7 +1282,7 @@ exports[`correctly applies paddingLeft from contentStyleProp 1`] = `
12821282
style={
12831283
[
12841284
{
1285-
"flex": 1,
1285+
"flexGrow": 1,
12861286
"paddingBottom": 0,
12871287
"paddingTop": 0,
12881288
},
@@ -1432,7 +1432,7 @@ exports[`correctly applies paddingLeft from contentStyleProp 1`] = `
14321432
style={
14331433
[
14341434
{
1435-
"flex": 1,
1435+
"flexGrow": 1,
14361436
"margin": 0,
14371437
},
14381438
{},
@@ -1508,7 +1508,7 @@ exports[`correctly applies textAlign center 1`] = `
15081508
style={
15091509
[
15101510
{
1511-
"flex": 1,
1511+
"flexGrow": 1,
15121512
"paddingBottom": 0,
15131513
"paddingTop": 0,
15141514
},
@@ -1658,7 +1658,7 @@ exports[`correctly applies textAlign center 1`] = `
16581658
style={
16591659
[
16601660
{
1661-
"flex": 1,
1661+
"flexGrow": 1,
16621662
"margin": 0,
16631663
},
16641664
{},
@@ -1732,7 +1732,7 @@ exports[`correctly renders left-side affix adornment, and right-side icon adornm
17321732
style={
17331733
[
17341734
{
1735-
"flex": 1,
1735+
"flexGrow": 1,
17361736
"paddingBottom": 0,
17371737
"paddingTop": 0,
17381738
},
@@ -1882,7 +1882,7 @@ exports[`correctly renders left-side affix adornment, and right-side icon adornm
18821882
style={
18831883
[
18841884
{
1885-
"flex": 1,
1885+
"flexGrow": 1,
18861886
"margin": 0,
18871887
},
18881888
{},
@@ -2158,7 +2158,7 @@ exports[`correctly renders left-side icon adornment, and right-side affix adornm
21582158
style={
21592159
[
21602160
{
2161-
"flex": 1,
2161+
"flexGrow": 1,
21622162
"paddingBottom": 0,
21632163
"paddingTop": 0,
21642164
},
@@ -2308,7 +2308,7 @@ exports[`correctly renders left-side icon adornment, and right-side affix adornm
23082308
style={
23092309
[
23102310
{
2311-
"flex": 1,
2311+
"flexGrow": 1,
23122312
"margin": 0,
23132313
},
23142314
{},

0 commit comments

Comments
 (0)