Skip to content

Commit

Permalink
Fix: Default values in rotate 3D weren't apply in CSS Transfrom [ED-5…
Browse files Browse the repository at this point in the history
…568] (elementor#16978)
  • Loading branch information
guyc-E authored Nov 18, 2021
1 parent f0ba156 commit 42419ec
Showing 1 changed file with 3 additions and 30 deletions.
33 changes: 3 additions & 30 deletions includes/widgets/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,6 @@ protected function register_controls() {
'max' => 360,
],
],
'default' => [
'size' => 0,
],
'selectors' => [
"{{WRAPPER}} > .elementor-widget-container{$state}" => '--e-transform-rotateZ: {{SIZE}}deg',
],
Expand All @@ -377,6 +374,9 @@ protected function register_controls() {
'selectors' => [
"{{WRAPPER}} > .elementor-widget-container{$state}" => '--e-transform-rotateX: 1deg; --e-transform-perspective: 20px;',
],
'condition' => [
"_transform_rotate_popover{$tab}!" => '',
],
]
);

Expand All @@ -391,9 +391,6 @@ protected function register_controls() {
'max' => 360,
],
],
'default' => [
'size' => 0,
],
'condition' => [
"_transform_rotate_3d{$tab}!" => '',
"_transform_rotate_popover{$tab}!" => '',
Expand All @@ -416,9 +413,6 @@ protected function register_controls() {
'max' => 360,
],
],
'default' => [
'size' => 0,
],
'condition' => [
"_transform_rotate_3d{$tab}!" => '',
"_transform_rotate_popover{$tab}!" => '',
Expand Down Expand Up @@ -482,9 +476,6 @@ protected function register_controls() {
'max' => 3000,
],
],
'default' => [
'size' => 0,
],
'condition' => [
"_transform_translate_popover{$tab}!" => '',
],
Expand Down Expand Up @@ -514,9 +505,6 @@ protected function register_controls() {
'condition' => [
"_transform_translate_popover{$tab}!" => '',
],
'default' => [
'size' => 0,
],
'selectors' => [
"{{WRAPPER}} > .elementor-widget-container{$state}" => '--e-transform-translateY: {{SIZE}}{{UNIT}};',
],
Expand Down Expand Up @@ -561,9 +549,6 @@ protected function register_controls() {
'step' => 0.1,
],
],
'default' => [
'size' => 1,
],
'condition' => [
"_transform_scale_popover{$tab}!" => '',
"_transform_keep_proportions{$tab}!" => '',
Expand All @@ -587,9 +572,6 @@ protected function register_controls() {
'step' => 0.1,
],
],
'default' => [
'size' => 1,
],
'condition' => [
"_transform_scale_popover{$tab}!" => '',
"_transform_keep_proportions{$tab}" => '',
Expand All @@ -613,9 +595,6 @@ protected function register_controls() {
'step' => 0.1,
],
],
'default' => [
'size' => 1,
],
'condition' => [
"_transform_scale_popover{$tab}!" => '',
"_transform_keep_proportions{$tab}" => '',
Expand Down Expand Up @@ -652,9 +631,6 @@ protected function register_controls() {
'max' => 360,
],
],
'default' => [
'size' => 0,
],
'condition' => [
"_transform_skew_popover{$tab}!" => '',
],
Expand All @@ -676,9 +652,6 @@ protected function register_controls() {
'max' => 360,
],
],
'default' => [
'size' => 0,
],
'condition' => [
"_transform_skew_popover{$tab}!" => '',
],
Expand Down

0 comments on commit 42419ec

Please sign in to comment.