block_name ); // Generate CSS using the row styles $css_generator->add_class_styles( '{{WRAPPER}}', $this->get_row_css( $attributes ) ); $css_generator->add_class_styles( '{{WRAPPER}}:hover', $this->get_row_hover_css( $attributes ) ); return $css_generator->generate_css(); } public function get_row_css( $attributes, $device = '' ) { $css = []; if ( ! empty( $attributes['rowColor'] ) ) { $css['background'] = $attributes['rowColor'] . ' !important'; } return $css; } public function get_row_hover_css( $attributes, $device = '' ) { $css = []; if ( ! empty( $attributes['rowColorH'] ) ) { $css['background'] = $attributes['rowColorH'] . ' !important'; } return $css; } }