Skip to content

Commit 4df95ba

Browse files
matthprostlisalupi
authored andcommitted
fix(TextArea): take all space when tooltip set (#5445)
1 parent 7f713bd commit 4df95ba

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

.changeset/great-showers-marry.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@ultraviolet/form": patch
3+
"@ultraviolet/ui": patch
4+
---
5+
6+
Fix `<TextArea />` when tooltip is set

packages/form/src/components/TextAreaField/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ exports[`TextAreaField > should render correctly 1`] = `
4848
display: -webkit-flex;
4949
display: -ms-flexbox;
5050
display: flex;
51+
width: 100%;
5152
}
5253
5354
.emotion-9 {
@@ -270,6 +271,7 @@ exports[`TextAreaField > should render correctly generated 1`] = `
270271
display: -webkit-flex;
271272
display: -ms-flexbox;
272273
display: flex;
274+
width: 100%;
273275
}
274276
275277
.emotion-13 {
@@ -503,6 +505,7 @@ exports[`TextAreaField > should submit with onSubmitEnter prop 1`] = `
503505
display: -webkit-flex;
504506
display: -ms-flexbox;
505507
display: flex;
508+
width: 100%;
506509
}
507510
508511
.emotion-9 {

packages/ui/src/components/TextArea/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ exports[`TextArea > should render correctly when input has a error sentiment 1`
8080
display: -webkit-flex;
8181
display: -ms-flexbox;
8282
display: flex;
83+
width: 100%;
8384
}
8485
8586
.emotion-5 {
@@ -88,6 +89,7 @@ exports[`TextArea > should render correctly when input has a error sentiment 1`
8889
display: -webkit-flex;
8990
display: -ms-flexbox;
9091
display: flex;
92+
width: 100%;
9193
}
9294
9395
.emotion-7 {
@@ -391,6 +393,7 @@ exports[`TextArea > should render correctly when input has a success sentiment 1
391393
display: -webkit-flex;
392394
display: -ms-flexbox;
393395
display: flex;
396+
width: 100%;
394397
}
395398
396399
.emotion-5 {
@@ -399,6 +402,7 @@ exports[`TextArea > should render correctly when input has a success sentiment 1
399402
display: -webkit-flex;
400403
display: -ms-flexbox;
401404
display: flex;
405+
width: 100%;
402406
}
403407
404408
.emotion-7 {
@@ -702,6 +706,7 @@ exports[`TextArea > should render correctly when input is disabled 1`] = `
702706
display: -webkit-flex;
703707
display: -ms-flexbox;
704708
display: flex;
709+
width: 100%;
705710
}
706711
707712
.emotion-5 {
@@ -710,6 +715,7 @@ exports[`TextArea > should render correctly when input is disabled 1`] = `
710715
display: -webkit-flex;
711716
display: -ms-flexbox;
712717
display: flex;
718+
width: 100%;
713719
}
714720
715721
.emotion-7 {
@@ -1024,6 +1030,7 @@ exports[`TextArea > should render correctly when input is readOnly 1`] = `
10241030
display: -webkit-flex;
10251031
display: -ms-flexbox;
10261032
display: flex;
1033+
width: 100%;
10271034
}
10281035
10291036
.emotion-5 {
@@ -1032,6 +1039,7 @@ exports[`TextArea > should render correctly when input is readOnly 1`] = `
10321039
display: -webkit-flex;
10331040
display: -ms-flexbox;
10341041
display: flex;
1042+
width: 100%;
10351043
}
10361044
10371045
.emotion-7 {
@@ -1380,6 +1388,7 @@ exports[`TextArea > should render correctly when it is required 1`] = `
13801388
display: -webkit-flex;
13811389
display: -ms-flexbox;
13821390
display: flex;
1391+
width: 100%;
13831392
}
13841393
13851394
.emotion-9 {
@@ -1388,6 +1397,7 @@ exports[`TextArea > should render correctly when it is required 1`] = `
13881397
display: -webkit-flex;
13891398
display: -ms-flexbox;
13901399
display: flex;
1400+
width: 100%;
13911401
}
13921402
13931403
.emotion-11 {
@@ -1674,6 +1684,7 @@ exports[`TextArea > should render correctly with basic props 1`] = `
16741684
display: -webkit-flex;
16751685
display: -ms-flexbox;
16761686
display: flex;
1687+
width: 100%;
16771688
}
16781689
16791690
.emotion-7 {
@@ -1889,6 +1900,7 @@ exports[`TextArea > should render correctly with maxlength 1`] = `
18891900
display: -webkit-flex;
18901901
display: -ms-flexbox;
18911902
display: flex;
1903+
width: 100%;
18921904
}
18931905
18941906
.emotion-5 {
@@ -1897,6 +1909,7 @@ exports[`TextArea > should render correctly with maxlength 1`] = `
18971909
display: -webkit-flex;
18981910
display: -ms-flexbox;
18991911
display: flex;
1912+
width: 100%;
19001913
}
19011914
19021915
.emotion-7 {
@@ -2247,6 +2260,7 @@ exports[`TextArea > should render with AutoExpandMax 1`] = `
22472260
display: -webkit-flex;
22482261
display: -ms-flexbox;
22492262
display: flex;
2263+
width: 100%;
22502264
}
22512265
22522266
.emotion-5 {
@@ -2255,6 +2269,7 @@ exports[`TextArea > should render with AutoExpandMax 1`] = `
22552269
display: -webkit-flex;
22562270
display: -ms-flexbox;
22572271
display: flex;
2272+
width: 100%;
22582273
}
22592274
22602275
.emotion-7 {
@@ -2559,6 +2574,7 @@ exports[`TextArea > should render with AutoExpandMax and rows 1`] = `
25592574
display: -webkit-flex;
25602575
display: -ms-flexbox;
25612576
display: flex;
2577+
width: 100%;
25622578
}
25632579
25642580
.emotion-5 {
@@ -2567,6 +2583,7 @@ exports[`TextArea > should render with AutoExpandMax and rows 1`] = `
25672583
display: -webkit-flex;
25682584
display: -ms-flexbox;
25692585
display: flex;
2586+
width: 100%;
25702587
}
25712588
25722589
.emotion-7 {
@@ -2871,6 +2888,7 @@ exports[`TextArea > should render with auto rows 1`] = `
28712888
display: -webkit-flex;
28722889
display: -ms-flexbox;
28732890
display: flex;
2891+
width: 100%;
28742892
}
28752893
28762894
.emotion-5 {
@@ -2879,6 +2897,7 @@ exports[`TextArea > should render with auto rows 1`] = `
28792897
display: -webkit-flex;
28802898
display: -ms-flexbox;
28812899
display: flex;
2900+
width: 100%;
28822901
}
28832902
28842903
.emotion-7 {

packages/ui/src/components/TextArea/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const STATE_ICON_SIZE = 'small'
2525
const StyledTextAreaWrapper = styled.div`
2626
position: relative;
2727
display: flex;
28+
width: 100%;
2829
`
2930

3031
const StyledTextAreaAbsoluteStack = styled(Stack)`

0 commit comments

Comments
 (0)