From 9ff98e5cc5eb1ede086fad574b52f8b05d13ee74 Mon Sep 17 00:00:00 2001 From: Marita Kochua Date: Fri, 24 Jun 2022 08:31:50 +0400 Subject: [PATCH 1/2] #4786 - corrected issue with dir --- .../scandipwa/src/route/CartPage/CartPage.style.scss | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/scandipwa/src/route/CartPage/CartPage.style.scss b/packages/scandipwa/src/route/CartPage/CartPage.style.scss index bfaf77e166..f09d77ed58 100644 --- a/packages/scandipwa/src/route/CartPage/CartPage.style.scss +++ b/packages/scandipwa/src/route/CartPage/CartPage.style.scss @@ -63,7 +63,15 @@ position: fixed; inset-block-start: auto; inset-block-end: 50%; - transform: translate(50%, 50%); + // transform: translate(-50%, 50%); + + &:dir(rtl) { + transform: translate(50%, 50%); + } + + &:dir(ltr) { + transform: translate(-50%, 50%); + } } } } From 6e68681bb63c6a5ac64b8b8385e80345cd50d185 Mon Sep 17 00:00:00 2001 From: Marita Kochua Date: Fri, 24 Jun 2022 08:32:39 +0400 Subject: [PATCH 2/2] #4786 - corrected issue with dir --- packages/scandipwa/src/route/CartPage/CartPage.style.scss | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/scandipwa/src/route/CartPage/CartPage.style.scss b/packages/scandipwa/src/route/CartPage/CartPage.style.scss index f09d77ed58..8e28ee1c20 100644 --- a/packages/scandipwa/src/route/CartPage/CartPage.style.scss +++ b/packages/scandipwa/src/route/CartPage/CartPage.style.scss @@ -63,7 +63,6 @@ position: fixed; inset-block-start: auto; inset-block-end: 50%; - // transform: translate(-50%, 50%); &:dir(rtl) { transform: translate(50%, 50%);