@@ -186,7 +186,7 @@ class FloatingAction extends Component {
186186 } = this . props ;
187187
188188 if ( overrideWithAction ) {
189- const { icon } = actions [ 0 ] ;
189+ const { icon } = actions [ 0 ] ?. icon || floatingIcon ;
190190
191191 if ( React . isValidElement ( icon ) ) {
192192 return icon ;
@@ -209,7 +209,12 @@ class FloatingAction extends Component {
209209 ) ;
210210 }
211211
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+ /> ;
213218 } ;
214219
215220 reset = ( ) => {
@@ -528,7 +533,7 @@ class FloatingAction extends Component {
528533 imageStyle = { action ?. imageStyle }
529534 imageContainerStyle = { action ?. imageContainerStyle }
530535 textStyle = { action ?. textStyle }
531- textContainerStyle = { action . textContainerStyle }
536+ textContainerStyle = { action ? .textContainerStyle }
532537 />
533538 ) ;
534539 } ) }
@@ -571,6 +576,7 @@ FloatingAction.propTypes = {
571576 tintColor : PropTypes . string ,
572577 iconStyle : PropTypes . object ,
573578 itemStyle : PropTypes . object ,
579+ backdropStyle : PropTypes . object ,
574580 actions : PropTypes . arrayOf (
575581 PropTypes . shape ( {
576582 color : PropTypes . string ,
0 commit comments