Skip to content

Commit

Permalink
refactored implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
prconcepcion committed Oct 16, 2023
1 parent feddc12 commit 2679739
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/block/tab-content/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,14 @@ const Edit = props => {
if ( context[ 'stackable/tabPanelEffect' ] === 'immediate' ) {
if ( index !== activeTab - 1 ) {
return `.stk-block-tabs [data-block="${ clientId }"] {
${ props.attributes.equalTabHeight ? 'display:none' : 'visibility: hidden' };
${ props.attributes.equalTabHeight ? 'visibility: hidden' : 'display:none' };
z-index: 1 !important;
}`
}
} else { // fade
if ( index !== activeTab - 1 ) {
return `.stk-block-tabs [data-block="${ clientId }"] {
${ props.attributes.equalTabHeight ? 'display:none' : 'visibility: hidden' };
${ props.attributes.equalTabHeight ? 'visibility: hidden' : 'display:none' };
opacity: 0;
z-index: 1 !important;
}`
Expand Down
4 changes: 2 additions & 2 deletions src/block/tab-content/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ const Styles = props => {
styleRule="display"
attrName="equalTabHeight"
key="equalTabHeight"
valueCallback={ () => {
return 'none'
valueCallback={ value => {
return value ? undefined : 'none'
} }
responsive="all"
/>
Expand Down

0 comments on commit 2679739

Please sign in to comment.