Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Condition with tabs control #6830
Hello. If I make the tab control dependency on any option, it is not completely hidden and padding remains. Classes elementor-hidden-control are not added for wrapper. http://prntscr.com/mahshi
Steps to reproduce
Make any tab control dependent on any option.
Isolating the problem
Thanks for reporting.
We will add in the next Core release a modification for this issue, and now you will be able to set conditions to the entire tab instead of each control separately.
In your case you will need to alter your code to something like this:
$this->start_controls_tabs( 'shadow_tabs', [ 'condition' => [ 'shadow_switcher' => [ 'yes' ], ], ] );
Hence, you will not have to set multiple conditions for each control.