diff --git a/src/templates/common/elements/a11y/a11y_options.html b/src/templates/common/elements/a11y/a11y_options.html new file mode 100644 index 0000000000..8afa1a0507 --- /dev/null +++ b/src/templates/common/elements/a11y/a11y_options.html @@ -0,0 +1,37 @@ +{% load i18n %} +

{% trans 'Accessibility Options' %}

+

+ {% blocktrans %} + The accessibility options may be accessed from the Accessibility Menu at the top of each page. + {% endblocktrans %} +

+ + +

{% trans 'Text' %}

+

+ {% blocktrans %} + The Reading Options bar lets you customise how text is displayed. It is available on text-heavy pages + and targets large areas of text, such as journal articles, rather than surrounding page elements, + so the reading area stays focused. + {% endblocktrans %} +

+ +

{% trans 'Accessibility Mode' %}

+

+ {% blocktrans %} + Accessibility Mode is a user-enabled theme built from the ground up to be accessible. The current + themes are built on older technologies, and it is not possible to make them fully accessible without + substantial changes. It will take time to move all existing presses onto the new accessible theme, + so in the short term we are offering Accessibility Mode for any user who needs those features. + {% endblocktrans %} +

+ +

{% trans 'Preference Storage' %}

+

+ {% blocktrans %} + If you are logged in, your preferences for both the Reading Options bar and Accessibility Mode are + saved to your account and applied on every visit. If you are not logged in, preferences are stored + for your current session and may need to be re-entered if your session expires, you clear cookies, + or you switch devices. + {% endblocktrans %} +

diff --git a/src/templates/common/elements/a11y/janeway.html b/src/templates/common/elements/a11y/janeway.html index ed18a492ca..4a86b9d5f0 100644 --- a/src/templates/common/elements/a11y/janeway.html +++ b/src/templates/common/elements/a11y/janeway.html @@ -23,7 +23,7 @@

{% trans 'Janeway' %}

{% endblocktrans%}

- {% trans 'Full details of the work done and that planned are in our' %} + {% trans 'Full details of the work done and that planned are in the Janeway ' %} {% trans 'Accessibility Project.' %} {% include "elements/icons/link_external.html" %} diff --git a/src/templates/common/elements/a11y/vpat.html b/src/templates/common/elements/a11y/vpat.html index 3263c3585e..e7cb98aed4 100644 --- a/src/templates/common/elements/a11y/vpat.html +++ b/src/templates/common/elements/a11y/vpat.html @@ -3,8 +3,10 @@ {% for theme_key, theme_data in vpat_data.items %} {% if theme_key == theme %} +

{% include "common/elements/a11y/vpat_table.html" with wcag_level="A" %} {% include "common/elements/a11y/vpat_table.html" with wcag_level="AA" %} +
{% endif %} {% endfor %} \ No newline at end of file diff --git a/src/themes/OLH/templates/core/a11y.html b/src/themes/OLH/templates/core/a11y.html index 292b62af0b..4264aab8c8 100644 --- a/src/themes/OLH/templates/core/a11y.html +++ b/src/themes/OLH/templates/core/a11y.html @@ -12,9 +12,11 @@

{% trans "Accessibility" %}

+ {% include "common/elements/a11y/a11y_options.html" %} {% include "common/elements/a11y/press.html" %} {% include "common/elements/a11y/journal.html" %} {% include "common/elements/a11y/janeway.html" %} +

VPAT

{% include "common/elements/a11y/vpat.html" with vpat_data=vpat_data theme="olh" %}
diff --git a/src/themes/OLH/templates/press/a11y.html b/src/themes/OLH/templates/press/a11y.html index dc2c771a14..fa4978eb8a 100644 --- a/src/themes/OLH/templates/press/a11y.html +++ b/src/themes/OLH/templates/press/a11y.html @@ -13,11 +13,12 @@

{% trans "Accessibility" %}

+ {% include "common/elements/a11y/a11y_options.html" %} {% include "common/elements/a11y/press.html" %} {% include "common/elements/a11y/janeway.html" %} {% if not other_themes_in_use or other_themes_in_use|length == 1 and 'olh' in other_themes_in_use %} -

VPAT

+

VPAT

{% include "common/elements/a11y/vpat.html" with vpat_data=vpat_data theme="olh" %} {% else %}

diff --git a/src/themes/clean/templates/core/a11y.html b/src/themes/clean/templates/core/a11y.html index 575ecf95a6..13531dbb1f 100644 --- a/src/themes/clean/templates/core/a11y.html +++ b/src/themes/clean/templates/core/a11y.html @@ -12,9 +12,11 @@ {% block body %}

{% trans "Accessibility" %}

+ {% include "common/elements/a11y/a11y_options.html" %} {% include "common/elements/a11y/press.html" %} {% include "common/elements/a11y/journal.html" %} {% include "common/elements/a11y/janeway.html" %} +

VPAT

{% include "common/elements/a11y/vpat.html" with vpat_data=vpat_data theme="clean" %}
{% endblock body %} \ No newline at end of file diff --git a/src/themes/clean/templates/press/a11y.html b/src/themes/clean/templates/press/a11y.html index b54976c45b..d8b032ce1a 100644 --- a/src/themes/clean/templates/press/a11y.html +++ b/src/themes/clean/templates/press/a11y.html @@ -12,11 +12,12 @@ {% block body %}

{% trans "Accessibility" %}

+ {% include "common/elements/a11y/a11y_options.html" %} {% include "common/elements/a11y/press.html" %} {% include "common/elements/a11y/janeway.html" %} {% if not other_themes_in_use or other_themes_in_use|length == 1 and 'clean' in other_themes_in_use %} -

VPAT

+

VPAT

{% include "common/elements/a11y/vpat.html" with vpat_data=vpat_data theme="clean" %} {% else %}

diff --git a/src/themes/material/templates/core/a11y.html b/src/themes/material/templates/core/a11y.html index 5bc808a8cc..86013d0968 100644 --- a/src/themes/material/templates/core/a11y.html +++ b/src/themes/material/templates/core/a11y.html @@ -13,9 +13,11 @@ {% block body %}

{% trans "Accessibility" %}

+ {% include "common/elements/a11y/a11y_options.html" %} {% include "common/elements/a11y/press.html" %} {% include "common/elements/a11y/journal.html" %} {% include "common/elements/a11y/janeway.html" %} +

VPAT

{% include "common/elements/a11y/vpat.html" with vpat_data=vpat_data theme="material" %}
{% endblock body %} \ No newline at end of file diff --git a/src/themes/material/templates/press/a11y.html b/src/themes/material/templates/press/a11y.html index 4c567d4781..353aa0d2f5 100644 --- a/src/themes/material/templates/press/a11y.html +++ b/src/themes/material/templates/press/a11y.html @@ -13,11 +13,12 @@ {% block body %}

{% trans "Accessibility" %}

+ {% include "common/elements/a11y/a11y_options.html" %} {% include "common/elements/a11y/press.html" %} {% include "common/elements/a11y/janeway.html" %} {% if not other_themes_in_use or other_themes_in_use|length == 1 and 'material' in other_themes_in_use %} -

VPAT

+

VPAT

{% include "common/elements/a11y/vpat.html" with vpat_data=vpat_data theme="material" %} {% else %}