Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Mini Cart block: fix slide in animation (#9195)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu authored and thealexandrelara committed Apr 25, 2023
1 parent c1a1b14 commit 7fe735c
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions assets/js/base/components/drawer/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,17 @@ $drawer-animation-duration: 0.3s;
}

to {
transform: translateX(var(--neg-drawer-width));
transform: translateX(max(-100%, var(--neg-drawer-width)));
}
}

@keyframes rtlslidein {
from {
transform: translateX(0);
}

to {
transform: translateX(min(100%, var(--drawer-width)));
}
}

Expand Down Expand Up @@ -68,7 +78,7 @@ $drawer-animation-duration: 0.3s;
}

.rtl .wc-block-components-drawer {
transform: translateX(max(100%, var(--drawer-width)));
transform: translateX(min(100%, var(--drawer-width)));
}

.wc-block-components-drawer__screen-overlay--with-slide-out .wc-block-components-drawer {
Expand All @@ -80,6 +90,10 @@ $drawer-animation-duration: 0.3s;
animation-name: slidein;
}

.rtl .wc-block-components-drawer__screen-overlay--with-slide-in .wc-block-components-drawer {
animation-name: rtlslidein;
}

.wc-block-components-drawer__screen-overlay--is-hidden .wc-block-components-drawer {
transform: translateX(0);
}
Expand Down

0 comments on commit 7fe735c

Please sign in to comment.