File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ const Snackbar = React.createClass({
63
63
onDismiss : React . PropTypes . func ,
64
64
openOnMount : React . PropTypes . bool ,
65
65
style : React . PropTypes . object ,
66
+ bodyStyle : React . PropTypes . object
66
67
} ,
67
68
68
69
//for passing default theme context to children
@@ -215,6 +216,7 @@ const Snackbar = React.createClass({
215
216
const {
216
217
onActionTouchTap,
217
218
style,
219
+ bodyStyle,
218
220
...others ,
219
221
} = this . props ;
220
222
const styles = this . getStyles ( ) ;
@@ -239,11 +241,13 @@ const Snackbar = React.createClass({
239
241
) ;
240
242
}
241
243
244
+ const mergedBodyStyle = this . mergeStyles ( styles . body , bodyStyle ) ;
245
+
242
246
const contentStyle = open ? this . mergeStyles ( styles . content , styles . contentWhenOpen ) : styles . content ;
243
247
244
248
return (
245
249
< div { ...others } style = { rootStyles } >
246
- < div style = { styles . body } >
250
+ < div style = { mergedBodyStyle } >
247
251
< div style = { contentStyle } >
248
252
< span > { message } </ span >
249
253
{ actionButton }
You can’t perform that action at this time.
0 commit comments