Skip to content

Commit

Permalink
Fix comments toggle button
Browse files Browse the repository at this point in the history
  • Loading branch information
madalingorbanescu committed Jan 23, 2020
1 parent 067c12b commit 44b6488
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 39 deletions.
6 changes: 0 additions & 6 deletions assets/scss/blocks/nova-blocks/food-menu/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@

.nova-food-menu-item--highlighted {
border-color: var(--theme-dark-primary);
border-top: 0;

margin-left: calc(var(--menu-offset) * -1);
margin-right: calc(var(--menu-offset) * -1);

padding: 0 var(--menu-offset) 14px;
}

.nova-food-menu-item__highlight-label {
Expand Down
13 changes: 5 additions & 8 deletions dist/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,14 +630,11 @@ function () {
if (instant) {
$contentWrap.css('height', newHeight);
} else {
TweenMax.to($contentWrap, .4, {
height: newHeight,
onComplete: function onComplete() {
if (isChecked) {
$contentWrap.css('height', '');
}
}
});
$contentWrap.css('height', newHeight);

if (isChecked) {
$contentWrap.css('height', '');
}
}
}
}, {
Expand Down
2 changes: 1 addition & 1 deletion dist/js/scripts.min.js

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -1500,11 +1500,7 @@
.editor-styles-wrapper .nova-food-menu__section:not(:first-child) {
margin-top: var(--theme-spacing-small); }
.editor-styles-wrapper .nova-food-menu-item--highlighted {
border-color: var(--theme-dark-primary);
border-top: 0;
margin-left: calc(var(--menu-offset) * -1);
margin-right: calc(var(--menu-offset) * -1);
padding: 0 var(--menu-offset) 14px; }
border-color: var(--theme-dark-primary); }
.editor-styles-wrapper .nova-food-menu-item__highlight-label {
background-color: var(--theme-dark-primary); }
.editor-styles-wrapper .nova-food-menu-item__title {
Expand Down
14 changes: 5 additions & 9 deletions src/components/commentsArea.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,10 @@ export default class CommentsArea {
if ( instant ) {
$contentWrap.css( 'height', newHeight );
} else {
TweenMax.to( $contentWrap, .4, {
height: newHeight,
onComplete: function() {
if ( isChecked ) {
$contentWrap.css( 'height', '' );
}
}
} );
$contentWrap.css( 'height', newHeight );
if ( isChecked ) {
$contentWrap.css( 'height', '' );
}
}
}

Expand All @@ -45,4 +41,4 @@ export default class CommentsArea {
this.toggle( true );
}
}
}
}
6 changes: 1 addition & 5 deletions style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -4582,11 +4582,7 @@ span.page-numbers {
margin-top: var(--theme-spacing-small); }

.nova-food-menu-item--highlighted {
border-color: var(--theme-dark-primary);
border-top: 0;
margin-right: calc(var(--menu-offset) * -1);
margin-left: calc(var(--menu-offset) * -1);
padding: 0 var(--menu-offset) 14px; }
border-color: var(--theme-dark-primary); }

.nova-food-menu-item__highlight-label {
background-color: var(--theme-dark-primary); }
Expand Down
6 changes: 1 addition & 5 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4582,11 +4582,7 @@ span.page-numbers {
margin-top: var(--theme-spacing-small); }

.nova-food-menu-item--highlighted {
border-color: var(--theme-dark-primary);
border-top: 0;
margin-left: calc(var(--menu-offset) * -1);
margin-right: calc(var(--menu-offset) * -1);
padding: 0 var(--menu-offset) 14px; }
border-color: var(--theme-dark-primary); }

.nova-food-menu-item__highlight-label {
background-color: var(--theme-dark-primary); }
Expand Down

0 comments on commit 44b6488

Please sign in to comment.