Commit d0b4e58 1 parent 88e0f14 commit d0b4e58 Copy full SHA for d0b4e58
File tree 6 files changed +501
-457
lines changed
6 files changed +501
-457
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 35
35
"update-storybook" : " run-s test:results build-storybook loki:update"
36
36
},
37
37
"peerDependencies" : {
38
- "@rocket.chat/fuselage-hooks" : " ^0.2.0-alpha.6 " ,
38
+ "@rocket.chat/fuselage-hooks" : " ^0.2.0-alpha.9 " ,
39
39
"react" : " ^16.8.6" ,
40
40
"styled-components" : " ^4.4.0"
41
41
},
Original file line number Diff line number Diff line change @@ -96,8 +96,6 @@ const withIconAddonColors = ({
96
96
export const Input = styled ( InputControl ) `
97
97
flex: 1 0 auto;
98
98
99
- width: 0;
100
-
101
99
${ ( { theme } ) => withIconAddonColors ( theme . inputColors . normal ) }
102
100
103
101
&:invalid,
@@ -110,6 +108,11 @@ export const Input = styled(InputControl)`
110
108
&.disabled + ${ Addon } {
111
109
pointer-events: none;
112
110
}
111
+
112
+ ${ Wrapper } > & {
113
+ min-width: 0;
114
+ width: 0;
115
+ }
113
116
` ;
114
117
115
118
export const StyledInputBoxSkeleton = styled . span `
Original file line number Diff line number Diff line change @@ -30,7 +30,15 @@ export const InputControl = React.forwardRef(function InputControl({
30
30
|| ( type === 'select' && 'select' )
31
31
|| 'input' }
32
32
className = { compoundClassName }
33
+ cols = {
34
+ ( type === 'textarea' && 1 )
35
+ || ( type === 'select' && 0 )
36
+ || 0 }
33
37
ref = { mergedRef }
38
+ size = {
39
+ ( type === 'textarea' && undefined )
40
+ || ( type === 'select' && 1 )
41
+ || 1 }
34
42
theme = { theme }
35
43
type = { type === 'textarea' || type === 'select' ? undefined : type }
36
44
htmlType = { type }
Original file line number Diff line number Diff line change @@ -89,8 +89,7 @@ export const StyledInputControl = styled.input`
89
89
90
90
flex: 0 0 auto;
91
91
92
- width: 8rem;
93
- min-width: 0;
92
+ min-width: 8rem;
94
93
95
94
background-color: transparent;
96
95
You can’t perform that action at this time.
0 commit comments