Skip to content

Commit

Permalink
fix: correct rtl for handouts
Browse files Browse the repository at this point in the history
  • Loading branch information
dyudyunov authored and leangseu-edx committed Mar 11, 2024
1 parent 3b409b0 commit 7ff00fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/course-home/outline-tab/LmsHtmlFragment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ const LmsHtmlFragment = ({
title,
...rest
}) => {
const direction = document.documentElement?.getAttribute('dir') || 'ltr';
const wholePage = `
<html>
<html dir="${direction}">
<head>
<base href="${getConfig().LMS_BASE_URL}" target="_parent">
<link rel="stylesheet" href="/static/${getConfig().LEGACY_THEME_NAME ? `${getConfig().LEGACY_THEME_NAME}/` : ''}css/bootstrap/lms-main.css">
Expand Down

0 comments on commit 7ff00fa

Please sign in to comment.