File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function computeMenuTranslation(switcher, optionsElement) {
88 const isOnTop = switcher . dataset . location === 'top' ;
99 const isOnBottom = switcher . dataset . location === 'bottom' ;
1010 const isOnBottomRight = switcher . dataset . location === 'bottom-right' ;
11- const isRTL = document . body . dir === 'rtl'
11+ const isRTL = document . documentElement . dir === 'rtl'
1212
1313 // Stuck on the left side of the switcher.
1414 let x = switcherRect . left ;
Original file line number Diff line number Diff line change 11<!DOCTYPE html>
2- < html lang ="{{ .Site.Language.Lang }} ">
2+ < html lang ="{{ .Site.Language.Lang }} " dir =" {{ .Site.Language.LanguageDirection | default `ltr` }} " >
33 {{- partial "head.html" . -}}
4- < body dir =" {{ .Site.Language.LanguageDirection | default `ltr` }} " >
4+ < body >
55 {{- partial "banner.html" . -}}
66 {{- partial "navbar.html" . -}}
77 {{- block "main" . }}{{ end -}}
You can’t perform that action at this time.
0 commit comments