Skip to content

Commit 44281da

Browse files
frjowes-otf
authored andcommitted
Add dir attribute to the html tag, ltr/rtl. (#3728)
Fixes #3726
1 parent d7f0bc9 commit 44281da

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

hypha/templates/base-apply.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{% load i18n static wagtailcore_tags wagtailimages_tags navigation_tags util_tags hijack cookieconsent_tags %}<!doctype html>
22
{% wagtail_site as current_site %}
33
{% get_current_language as LANGUAGE_CODE %}
4-
<html class="no-js" lang="{{ LANGUAGE_CODE }}">
4+
{% get_current_language_bidi as LANGUAGE_BIDI %}
5+
<html class="no-js" lang="{{ LANGUAGE_CODE }}" dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}">
56
<head>
67
{# TODO fallbacks if page is not defined e.g. for 404 page #}
78
<meta charset="utf-8">

hypha/templates/base.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{% load static cache wagtailcore_tags wagtailimages_tags navigation_tags util_tags cookieconsent_tags i18n %}<!doctype html>
22
{% wagtail_site as current_site %}
33
{% get_current_language as LANGUAGE_CODE %}
4-
<html class="no-js" lang="{{ LANGUAGE_CODE }}">
4+
{% get_current_language_bidi as LANGUAGE_BIDI %}
5+
<html class="no-js" lang="{{ LANGUAGE_CODE }}" dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}">
56
<head>
67
{# TODO fallbacks if page is not defined e.g. for 404 page #}
78
<meta charset="utf-8">

0 commit comments

Comments
 (0)