Skip to content

Commit 0e98399

Browse files
authored
fix: [RGOeX-25901] Handle rtl/ltr for hangouts (openedx#1192)
1 parent 73610bf commit 0e98399

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/course-home/outline-tab/LmsHtmlFragment.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ const LmsHtmlFragment = ({
99
title,
1010
...rest
1111
}) => {
12+
const direction = document.documentElement?.getAttribute('dir') || 'ltr';
1213
const wholePage = `
13-
<html>
14+
<html dir="${direction}">
1415
<head>
1516
<base href="${getConfig().LMS_BASE_URL}" target="_parent">
1617
<link rel="stylesheet" href="/static/${getConfig().LEGACY_THEME_NAME ? `${getConfig().LEGACY_THEME_NAME}/` : ''}css/bootstrap/lms-main.css">

0 commit comments

Comments
 (0)