Skip to content

Commit 264f7fa

Browse files
fix: chip style (#3994)
Co-authored-by: Sangamesh Somawar <sangamesh1439@gmail.com>
1 parent a1c1107 commit 264f7fa

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

src/components/Chip/Chip.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,6 @@ const styles = StyleSheet.create({
422422
alignItems: 'center',
423423
paddingLeft: 4,
424424
position: 'relative',
425-
flexGrow: 1,
426425
},
427426
md3Content: {
428427
paddingLeft: 0,
@@ -482,7 +481,7 @@ const styles = StyleSheet.create({
482481
alignItems: 'center',
483482
},
484483
touchable: {
485-
flexGrow: 1,
484+
width: '100%',
486485
},
487486
});
488487

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

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ exports[`renders chip with close button 1`] = `
7070
"borderRadius": 8,
7171
},
7272
Object {
73-
"flexGrow": 1,
73+
"width": "100%",
7474
},
7575
],
7676
]
@@ -83,7 +83,6 @@ exports[`renders chip with close button 1`] = `
8383
Object {
8484
"alignItems": "center",
8585
"flexDirection": "row",
86-
"flexGrow": 1,
8786
"paddingLeft": 4,
8887
"position": "relative",
8988
},
@@ -346,7 +345,7 @@ exports[`renders chip with custom close button 1`] = `
346345
"borderRadius": 8,
347346
},
348347
Object {
349-
"flexGrow": 1,
348+
"width": "100%",
350349
},
351350
],
352351
]
@@ -359,7 +358,6 @@ exports[`renders chip with custom close button 1`] = `
359358
Object {
360359
"alignItems": "center",
361360
"flexDirection": "row",
362-
"flexGrow": 1,
363361
"paddingLeft": 4,
364362
"position": "relative",
365363
},
@@ -622,7 +620,7 @@ exports[`renders chip with icon 1`] = `
622620
"borderRadius": 8,
623621
},
624622
Object {
625-
"flexGrow": 1,
623+
"width": "100%",
626624
},
627625
],
628626
]
@@ -635,7 +633,6 @@ exports[`renders chip with icon 1`] = `
635633
Object {
636634
"alignItems": "center",
637635
"flexDirection": "row",
638-
"flexGrow": 1,
639636
"paddingLeft": 4,
640637
"position": "relative",
641638
},
@@ -821,7 +818,7 @@ exports[`renders chip with onPress 1`] = `
821818
"borderRadius": 8,
822819
},
823820
Object {
824-
"flexGrow": 1,
821+
"width": "100%",
825822
},
826823
],
827824
]
@@ -834,7 +831,6 @@ exports[`renders chip with onPress 1`] = `
834831
Object {
835832
"alignItems": "center",
836833
"flexDirection": "row",
837-
"flexGrow": 1,
838834
"paddingLeft": 4,
839835
"position": "relative",
840836
},
@@ -968,7 +964,7 @@ exports[`renders outlined disabled chip 1`] = `
968964
"borderRadius": 8,
969965
},
970966
Object {
971-
"flexGrow": 1,
967+
"width": "100%",
972968
},
973969
],
974970
]
@@ -981,7 +977,6 @@ exports[`renders outlined disabled chip 1`] = `
981977
Object {
982978
"alignItems": "center",
983979
"flexDirection": "row",
984-
"flexGrow": 1,
985980
"paddingLeft": 4,
986981
"position": "relative",
987982
},
@@ -1115,7 +1110,7 @@ exports[`renders selected chip 1`] = `
11151110
"borderRadius": 8,
11161111
},
11171112
Object {
1118-
"flexGrow": 1,
1113+
"width": "100%",
11191114
},
11201115
],
11211116
]
@@ -1128,7 +1123,6 @@ exports[`renders selected chip 1`] = `
11281123
Object {
11291124
"alignItems": "center",
11301125
"flexDirection": "row",
1131-
"flexGrow": 1,
11321126
"paddingLeft": 4,
11331127
"position": "relative",
11341128
},

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ exports[`renders list item with custom description 1`] = `
167167
"borderRadius": 8,
168168
},
169169
Object {
170-
"flexGrow": 1,
170+
"width": "100%",
171171
},
172172
],
173173
]
@@ -180,7 +180,6 @@ exports[`renders list item with custom description 1`] = `
180180
Object {
181181
"alignItems": "center",
182182
"flexDirection": "row",
183-
"flexGrow": 1,
184183
"paddingLeft": 4,
185184
"position": "relative",
186185
},

0 commit comments

Comments
 (0)