| @@ -26,15 +26,17 @@ | ||
| 26 | 26 | $css_generator->add_class_styles( |
| 27 | 27 | '{{WRAPPER}} .ablocks-icon-wrap', |
| 28 | 28 | Icon::get_wrapper_css( $attributes ), |
| 29 | 29 | Icon::get_wrapper_css( $attributes, 'Tablet' ), |
| 30 | - Icon::get_wrapper_css( $attributes, 'Mobile' ) | |
| 30 | + Icon::get_wrapper_css( $attributes, 'Mobile' ), | |
| 31 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_wrapper_css( $attributes, $device ); } ) | |
| 31 | 32 | ); |
| 32 | 33 | $css_generator->add_class_styles( |
| 33 | 34 | '{{WRAPPER}} .ablocks-icon-wrap:hover', |
| 34 | 35 | Icon::get_wrapper_hover_css( $attributes ), |
| 35 | 36 | Icon::get_wrapper_hover_css( $attributes, 'Tablet' ), |
| 36 | - Icon::get_wrapper_hover_css( $attributes, 'Mobile' ) | |
| 37 | + Icon::get_wrapper_hover_css( $attributes, 'Mobile' ), | |
| 38 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_wrapper_hover_css( $attributes, $device ); } ) | |
| 37 | 39 | ); |
| 38 | 40 | $css_generator->add_class_styles( |
| 39 | 41 | '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon', |
| 40 | 42 | Icon::get_element_image_css( $attributes ), |