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..324379354f --- /dev/null +++ b/src/templates/common/elements/a11y/a11y_options.html @@ -0,0 +1,34 @@ +{% load i18n %} +

{% trans 'Accessibility Options' %}

+

+The accessibility options may be accessed from the Accessibility Menu at the top of each page. +

+ +

{% 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 b83473877c..6933a2053c 100644 --- a/src/themes/OLH/templates/core/a11y.html +++ b/src/themes/OLH/templates/core/a11y.html @@ -9,9 +9,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 046ea6a562..6e15030e80 100644 --- a/src/themes/OLH/templates/press/a11y.html +++ b/src/themes/OLH/templates/press/a11y.html @@ -9,11 +9,12 @@

{% trans "Accessibility" %}

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

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 8ab1e8ecb6..d986806c9b 100644 --- a/src/themes/clean/templates/core/a11y.html +++ b/src/themes/clean/templates/core/a11y.html @@ -7,8 +7,10 @@ {% 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 02ec8cf7a8..55a10f26c7 100644 --- a/src/themes/clean/templates/press/a11y.html +++ b/src/themes/clean/templates/press/a11y.html @@ -7,11 +7,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 journal_themes or journal_themes|length == 1 and 'clean' in journal_themes %} -

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 d7e5929f89..53d4c9121b 100644 --- a/src/themes/material/templates/core/a11y.html +++ b/src/themes/material/templates/core/a11y.html @@ -8,9 +8,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 82f5ca5bd9..37186cd2c0 100644 --- a/src/themes/material/templates/press/a11y.html +++ b/src/themes/material/templates/press/a11y.html @@ -8,11 +8,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 journal_themes or journal_themes|length == 1 and 'material' in journal_themes %} -

VPAT

+

VPAT

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