From 0516828983939ce1f4887d7a943aa08147b6b2be Mon Sep 17 00:00:00 2001 From: Lucas Date: Tue, 4 Feb 2025 13:16:31 +0000 Subject: [PATCH] Added accessibility changes to small_drawer - Added aria-expanded. - Increase visibility of the drawer on mobile by moving it to the top of the screen. - Added close button to drawer. - If drawer is opened using keyboard then the focus jumps to the first element inside the drawer. --- templates/web/base/alert/_updates.html | 5 +- templates/web/base/report/display.html | 7 +-- templates/web/base/report/display_tools.html | 30 ++++++----- web/cobrands/fixmystreet/fixmystreet.js | 57 +++++++++++++++++--- web/cobrands/sass/_base.scss | 4 ++ web/cobrands/sass/_layout.scss | 1 + 6 files changed, 78 insertions(+), 26 deletions(-) diff --git a/templates/web/base/alert/_updates.html b/templates/web/base/alert/_updates.html index b237b1bff1b..d169c6dd78f 100644 --- a/templates/web/base/alert/_updates.html +++ b/templates/web/base/alert/_updates.html @@ -5,12 +5,13 @@ [% IF NOT c.user_exists OR c.user.alert_updates_by(c.cobrand) != 'phone' %] - [% loc('Receive email when updates are left on this problem.') %] + [% loc('Receive email when updates are left on this problem.') %] [% ELSE %] - [% loc('Receive a text when updates are left on this problem.') %] + [% loc('Receive a text when updates are left on this problem.') %] [% END %]

+ [% PROCESS 'auth/form_extra.html' %] [% IF c.user_exists %] diff --git a/templates/web/base/report/display.html b/templates/web/base/report/display.html index ead7f832d76..d0853fe35a6 100644 --- a/templates/web/base/report/display.html +++ b/templates/web/base/report/display.html @@ -45,9 +45,6 @@ [% END %] [% TRY %][% INCLUDE 'report/_message_manager.html' %][% CATCH file %][% END %] -[% INCLUDE 'report/display_tools.html' %] -[% TRY %][% INCLUDE 'report/sharing.html' %][% CATCH file %][% END %] -[% INCLUDE 'report/updates.html' %] [% IF problem.duplicate_of %] [% INCLUDE 'report/duplicate-no-updates.html' %] @@ -57,6 +54,10 @@ [% PROCESS 'report/update-form-wrapper.html' %] [% END %] +[% INCLUDE 'report/display_tools.html' %] +[% TRY %][% INCLUDE 'report/sharing.html' %][% CATCH file %][% END %] +[% INCLUDE 'report/updates.html' %] + [% second_column | safe %] diff --git a/templates/web/base/report/display_tools.html b/templates/web/base/report/display_tools.html index a94e4246fb1..cf6afc4c08c 100644 --- a/templates/web/base/report/display_tools.html +++ b/templates/web/base/report/display_tools.html @@ -1,5 +1,5 @@
-