@@ -18,6 +18,12 @@ const getStyle = (style: ContainerStyleType) => {
18
18
padding : ${ style . padding } ;
19
19
// width: ${ widthCalculator ( style . margin ) } ;
20
20
// height: ${ heightCalculator ( style . margin ) } ;
21
+ ${ style . background && `background-color: ${ style . background } ;` }
22
+ ${ style . backgroundImage && `background-image: ${ style . backgroundImage } ;` }
23
+ ${ style . backgroundImageRepeat && `background-repeat: ${ style . backgroundImageRepeat } ;` }
24
+ ${ style . backgroundImageSize && `background-size: ${ style . backgroundImageSize } ;` }
25
+ ${ style . backgroundImagePosition && `background-position: ${ style . backgroundImagePosition } ;` }
26
+ ${ style . backgroundImageOrigin && `background-origin: ${ style . backgroundImageOrigin } ;` }
21
27
` ;
22
28
} ;
23
29
@@ -130,7 +136,7 @@ export function TriContainer(props: TriContainerProps) {
130
136
minHeight = "46px"
131
137
containerPadding = { [ paddingWidth , 3 ] }
132
138
showName = { { bottom : showBody || showFooter ? 20 : 0 } }
133
- $backgroundColor = { headerStyle ?. headerBackground }
139
+ $backgroundColor = { headerStyle ?. headerBackground || 'transparent' }
134
140
$headerBackgroundImage = { headerStyle ?. headerBackgroundImage }
135
141
$headerBackgroundImageRepeat = { headerStyle ?. headerBackgroundImageRepeat }
136
142
$headerBackgroundImageSize = { headerStyle ?. headerBackgroundImageSize }
@@ -154,7 +160,7 @@ export function TriContainer(props: TriContainerProps) {
154
160
( showHeader && showFooter ) || showHeader ? [ paddingWidth , 11.5 ] : [ paddingWidth , 11 ]
155
161
}
156
162
hintPlaceholder = { props . hintPlaceholder ?? HintPlaceHolder }
157
- $backgroundColor = { bodyStyle ?. background }
163
+ $backgroundColor = { bodyStyle ?. background || 'transparent' }
158
164
$borderColor = { style ?. border }
159
165
$borderWidth = { style ?. borderWidth }
160
166
$backgroundImage = { bodyStyle ?. backgroundImage }
@@ -177,7 +183,7 @@ export function TriContainer(props: TriContainerProps) {
177
183
minHeight = { showBody ? "47px" : "46px" }
178
184
containerPadding = { showBody || showHeader ? [ paddingWidth , 3.5 ] : [ paddingWidth , 3 ] }
179
185
showName = { { top : showHeader || showBody ? 20 : 0 } }
180
- $backgroundColor = { footerStyle ?. footerBackground }
186
+ $backgroundColor = { footerStyle ?. footerBackground || 'transparent' }
181
187
$footerBackgroundImage = { footerStyle ?. footerBackgroundImage }
182
188
$footerBackgroundImageRepeat = { footerStyle ?. footerBackgroundImageRepeat }
183
189
$footerBackgroundImageSize = { footerStyle ?. footerBackgroundImageSize }
0 commit comments