@@ -186,7 +186,7 @@ class FloatingAction extends Component {
186
186
} = this . props ;
187
187
188
188
if ( overrideWithAction ) {
189
- const { icon } = actions [ 0 ] ;
189
+ const { icon } = actions [ 0 ] ?. icon || floatingIcon ;
190
190
191
191
if ( React . isValidElement ( icon ) ) {
192
192
return icon ;
@@ -209,7 +209,12 @@ class FloatingAction extends Component {
209
209
) ;
210
210
}
211
211
212
- return < AddIcon width = { iconStyle ?. width || iconWidth } height = { iconStyle ?. height || iconHeight } backgroundColor = { iconStyle ?. backgroundColor || iconColor } /> ;
212
+ return < AddIcon
213
+ width = { iconStyle ?. width || iconWidth }
214
+ height = { iconStyle ?. height || iconHeight }
215
+ backgroundColor = { iconStyle ?. backgroundColor || iconColor }
216
+ iconStyle = { iconStyle }
217
+ /> ;
213
218
} ;
214
219
215
220
reset = ( ) => {
@@ -528,7 +533,7 @@ class FloatingAction extends Component {
528
533
imageStyle = { action ?. imageStyle }
529
534
imageContainerStyle = { action ?. imageContainerStyle }
530
535
textStyle = { action ?. textStyle }
531
- textContainerStyle = { action . textContainerStyle }
536
+ textContainerStyle = { action ? .textContainerStyle }
532
537
/>
533
538
) ;
534
539
} ) }
@@ -571,6 +576,7 @@ FloatingAction.propTypes = {
571
576
tintColor : PropTypes . string ,
572
577
iconStyle : PropTypes . object ,
573
578
itemStyle : PropTypes . object ,
579
+ backdropStyle : PropTypes . object ,
574
580
actions : PropTypes . arrayOf (
575
581
PropTypes . shape ( {
576
582
color : PropTypes . string ,
0 commit comments