PluginProbe
Elementor Website Builder – more than just a page builder / 3.33.0-beta1
Elementor Website Builder – more than just a page builder v3.33.0-beta1
4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 All 457 releases
← All changes | modules/atomic-widgets/styles/styles-renderer.php +2 -6 4.1.5 → 3.33.0-beta1 View file →
@@ -120,13 +120,10 @@
120 120 if ( ! $css && ! $custom_css ) {
121 121 return '';
122 122 }
123 123
124 - if ( isset( $variant['meta']['state'] ) ) {
125 - $selector = Style_States::get_selector_with_state( $base_selector, $variant['meta']['state'] );
126 - } else {
127 - $selector = $base_selector;
128 - }
124 + $state = isset( $variant['meta']['state'] ) ? ':' . $variant['meta']['state'] : '';
125 + $selector = $base_selector . $state;
129 126
130 127 $style_declaration = $selector . '{' . $css . $custom_css . '}';
131 128
132 129 if ( isset( $variant['meta']['breakpoint'] ) ) {
@@ -134,9 +131,8 @@
134 131 }
135 132
136 133 return $style_declaration;
137 134 }
138 -
139 135
140 136 private function props_to_css_string( array $props ): string {
141 137 $schema = Style_Schema::get();
142 138