@@ -16,11 +16,22 @@ export default {
16
16
} ,
17
17
} ;
18
18
19
- export const AAAOverview : Story = props =>
20
- html `< uui-textarea
21
- style ="--uui-textarea-min-height: ${ props [
22
- '--uui-textarea-min-height'
23
- ] } ; --uui-textarea-max-height: ${ props [ '--uui-textarea-max-height' ] } "
19
+ export const AAAOverview : Story = props => {
20
+ const minHeight = props [ '--uui-textarea-min-height' ] ;
21
+ const maxHeight = props [ '--uui-textarea-max-height' ] ;
22
+ const backgroundColor = props [ '--uui-textarea-background-color' ] ;
23
+
24
+ const styles = `
25
+ ${ minHeight ? `--uui-textarea-min-height: ${ minHeight } ;` : '' }
26
+ ${ maxHeight ? `--uui-textarea-max-height: ${ maxHeight } ;` : '' }
27
+ ${
28
+ backgroundColor
29
+ ? `--uui-textarea-background-color: ${ backgroundColor } ;`
30
+ : ''
31
+ }
32
+ ` ;
33
+ return html `< uui-textarea
34
+ style =${ styles }
24
35
.label =${ props . label }
25
36
?auto-height=${ props . autoHeight }
26
37
.minlength=${ props . minlength }
@@ -31,18 +42,21 @@ export const AAAOverview: Story = props =>
31
42
.name=${ props . name }
32
43
.error=${ props . error }
33
44
.value=${ props . value } > </ uui-textarea > ` ;
45
+ } ;
34
46
35
47
AAAOverview . storyName = 'Overview' ;
36
48
37
49
AAAOverview . args = {
38
50
label : 'Label' ,
39
51
'--uui-textarea-min-height' : '' ,
40
52
'--uui-textarea-max-height' : '' ,
53
+ '--uui-textarea-background-color' : '' ,
41
54
} ;
42
55
43
56
AAAOverview . argTypes = {
44
57
'--uui-textarea-min-height' : { control : { type : 'text' } } ,
45
58
'--uui-textarea-max-height' : { control : { type : 'text' } } ,
59
+ '--uui-textarea-background-color' : { control : { type : 'color' } } ,
46
60
} ;
47
61
48
62
AAAOverview . parameters = {
0 commit comments