From a1215a3237ff53941d606fc54d926495e454c2d9 Mon Sep 17 00:00:00 2001 From: Thibaud Colas Date: Tue, 29 Sep 2020 00:43:19 +0100 Subject: [PATCH] Fixed #32053 -- Fixed accessibility issues on the 'Congrats' page. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add lang attribute. - Use the same text for the page’s main heading, and title. - Add underlines for all links in copy. - Stop using h2 for link to the Django page. - Use h1 for the main heading. - Remove useless type attribute on style element. - Remove grey text that fails contrast checks. - Use a shade of grey that passes AAA contrast requirements. - Stop using h4 for footer links. - Add full stop in block-level links so VoiceOver correctly pauses between runs of text. - Hide main artwork for screen reader users. - Update SVG icons markup to be screen-reader friendly. - Switch options to be block-level links. - Remove unused markup. --- django/views/templates/default_urlconf.html | 168 +++++++++----------- tests/view_tests/tests/test_debug.py | 2 +- 2 files changed, 73 insertions(+), 97 deletions(-) diff --git a/django/views/templates/default_urlconf.html b/django/views/templates/default_urlconf.html index e8e180f8bc..5092377bf4 100644 --- a/django/views/templates/default_urlconf.html +++ b/django/views/templates/default_urlconf.html @@ -1,19 +1,18 @@ {% load i18n %} -{% get_current_language_bidi as LANGUAGE_BIDI %} - +{% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %} + - {% translate "Django: the Web framework for perfectionists with deadlines." %} + {% translate "The install worked successfully! Congratulations!" %} -
- +

{% blocktranslate %}View release notes for Django {{ version }}{% endblocktranslate %}

-
- - - - - - - - - - - -
-

{% translate "The install worked successfully! Congratulations!" %}

+ +

{% translate "The install worked successfully! Congratulations!" %}

{% blocktranslate %}You are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs.{% endblocktranslate %}

diff --git a/tests/view_tests/tests/test_debug.py b/tests/view_tests/tests/test_debug.py index a0da6e1adc..35a44451f2 100644 --- a/tests/view_tests/tests/test_debug.py +++ b/tests/view_tests/tests/test_debug.py @@ -243,7 +243,7 @@ class DebugViewTests(SimpleTestCase): response = self.client.get('/') self.assertContains( response, - "

The install worked successfully! Congratulations!

" + "

The install worked successfully! Congratulations!

" ) @override_settings(ROOT_URLCONF='view_tests.regression_21530_urls')