Skip to content

Commit

Permalink
Fix MiniCart Interaction Blocking (#2547)
Browse files Browse the repository at this point in the history
* Shrink MiniCart when it is closed

* Switches to using left instead of scale

* Positions MiniCart contents container offscreen as well

* Changes contents to position absolute

Co-authored-by: Devagouda <40405790+dpatil-magento@users.noreply.github.com>
  • Loading branch information
supernova-at and dpatil-magento committed Jul 15, 2020
1 parent 8c18773 commit 935141a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/venia-ui/lib/components/MiniCart/miniCart.css
@@ -1,7 +1,7 @@
.root {
/* The root aside element takes up the whole screen. */
position: fixed;
left: 0;
left: 100vw;
top: 0;
height: 100%;
width: 100%;
Expand All @@ -22,6 +22,7 @@
.root_open {
composes: root;

left: 0;
opacity: 1;
visibility: visible;

Expand All @@ -47,7 +48,7 @@
max-height: 32rem;
overflow: hidden;
padding: 1rem;
position: fixed;
position: absolute;
right: 0.5rem;
/* This value is equal to the site header height. */
top: 5rem;
Expand Down

0 comments on commit 935141a

Please sign in to comment.