Skip to content

Commit

Permalink
fix: padding not working correctly for mobile in Heading Block
Browse files Browse the repository at this point in the history
Mobile Padding was checking if tablet padding exists in Heading Block.
Fixes Codeinwp/otter-internals#185
  • Loading branch information
HardeepAsrani committed Aug 6, 2024
1 parent 83f4130 commit eb004e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/css/blocks/class-advanced-heading-css.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ public function render_css( $block ) {
'property' => '--padding-mobile',
'value' => 'paddingMobile',
'condition' => function( $attrs ) {
return isset( $attrs['paddingTablet'] ) && is_array( $attrs['paddingTablet'] );
return isset( $attrs['paddingMobile'] ) && is_array( $attrs['paddingMobile'] );
},
'format' => function( $value ) {
return CSS_Utility::render_box( $value );
Expand Down

0 comments on commit eb004e1

Please sign in to comment.