From 5128c1bb446a6a8148de727f8c0e144501c5e300 Mon Sep 17 00:00:00 2001 From: "fateme.fazli" Date: Sat, 31 Aug 2019 16:13:53 +0430 Subject: [PATCH] fix(rtl): background stub position condition based on rtl --- src/components/Redoc/styled.elements.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Redoc/styled.elements.tsx b/src/components/Redoc/styled.elements.tsx index adb18d16..2612a69d 100644 --- a/src/components/Redoc/styled.elements.tsx +++ b/src/components/Redoc/styled.elements.tsx @@ -43,7 +43,7 @@ export const BackgroundStub = styled.div` position: absolute; top: 0; bottom: 0; - ${({ theme }) => theme.typography.direction === 'ltr' ? 'right: 0;' : 'left: 0;'}; + ${({ theme }) => theme.typography.direction === 'rtl' ? 'left: 0;' : 'right: 0;'}; width: ${({ theme }) => { if (theme.rightPanel.width.endsWith('%')) { const percents = parseInt(theme.rightPanel.width, 10);