From b44acfecd2f3a9f8186deb471121dd9e07c0847d Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Fri, 21 Jun 2024 16:43:07 +0800 Subject: [PATCH 01/10] MDL-67683 theme: Do not use section for #region-main The #region-main container should not be a
tag (which has a default landmark role of "region") as it contains the container with the "main" role which should be a top-level landmark. Read more at: https://www.w3.org/WAI/ARIA/apg/practices/landmark-regions/ --- theme/boost/templates/columns1.mustache | 4 ++-- theme/boost/templates/columns2.mustache | 4 ++-- theme/boost/templates/drawers.mustache | 4 ++-- theme/boost/templates/login.mustache | 4 ++-- theme/boost/templates/maintenance.mustache | 4 ++-- theme/boost/templates/secure.mustache | 4 ++-- theme/classic/templates/columns.mustache | 4 ++-- theme/classic/templates/contentonly.mustache | 4 ++-- theme/classic/templates/secure.mustache | 4 ++-- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/theme/boost/templates/columns1.mustache b/theme/boost/templates/columns1.mustache index d2965a73b71..5285d6213d6 100644 --- a/theme/boost/templates/columns1.mustache +++ b/theme/boost/templates/columns1.mustache @@ -48,7 +48,7 @@
-
+
{{{ output.course_content_header }}} {{#headercontent}} {{> core/activity_header }} @@ -56,7 +56,7 @@ {{{ output.main_content }}} {{{ output.activity_navigation }}} {{{ output.course_content_footer }}} -
+
diff --git a/theme/boost/templates/columns2.mustache b/theme/boost/templates/columns2.mustache index 463f5e55f6d..a5f3db4f938 100644 --- a/theme/boost/templates/columns2.mustache +++ b/theme/boost/templates/columns2.mustache @@ -73,7 +73,7 @@
{{{ regionmainsettingsmenu }}}
{{/hasregionmainsettingsmenu}} -
+
{{#hasregionmainsettingsmenu}}
@@ -89,7 +89,7 @@ {{{ output.activity_navigation }}} {{{ output.course_content_footer }}} -
+ {{#hasblocks}}
{{{ addblockbutton }}} diff --git a/theme/boost/templates/drawers.mustache b/theme/boost/templates/drawers.mustache index 69447565c08..679332b2781 100644 --- a/theme/boost/templates/drawers.mustache +++ b/theme/boost/templates/drawers.mustache @@ -142,7 +142,7 @@
{{{ regionmainsettingsmenu }}}
{{/hasregionmainsettingsmenu}} -
+
{{#hasregionmainsettingsmenu}}
@@ -162,7 +162,7 @@ {{{ output.activity_navigation }}} {{{ output.course_content_footer }}} -
+ diff --git a/theme/boost/templates/login.mustache b/theme/boost/templates/login.mustache index 48428fd2f61..9014343f524 100644 --- a/theme/boost/templates/login.mustache +++ b/theme/boost/templates/login.mustache @@ -41,13 +41,13 @@
-
+
-
+
diff --git a/theme/boost/templates/maintenance.mustache b/theme/boost/templates/maintenance.mustache index d3dc36eec2e..d952db3b778 100644 --- a/theme/boost/templates/maintenance.mustache +++ b/theme/boost/templates/maintenance.mustache @@ -57,9 +57,9 @@
-
+
{{{ output.main_content }}} -
+
diff --git a/theme/boost/templates/secure.mustache b/theme/boost/templates/secure.mustache index e5334304a3c..c35d11225b6 100644 --- a/theme/boost/templates/secure.mustache +++ b/theme/boost/templates/secure.mustache @@ -60,7 +60,7 @@
-
+
{{{ output.course_content_header }}} {{#headercontent}} @@ -69,7 +69,7 @@ {{{ output.main_content }}} {{{ output.course_content_footer }}} -
+
{{#hasblocks}}
{{{ sidepreblocks }}} diff --git a/theme/classic/templates/columns.mustache b/theme/classic/templates/columns.mustache index 36b54558b05..2fdfa234fb3 100644 --- a/theme/classic/templates/columns.mustache +++ b/theme/classic/templates/columns.mustache @@ -66,7 +66,7 @@
{{{ output.region_main_settings_menu }}}
{{/hasregionmainsettingsmenu}} -
+
{{#hasregionmainsettingsmenu}}
{{/hasregionmainsettingsmenu}} @@ -77,7 +77,7 @@ {{{ output.main_content }}} {{{ output.activity_navigation }}} {{{ output.course_content_footer }}} -
+
diff --git a/theme/classic/templates/contentonly.mustache b/theme/classic/templates/contentonly.mustache index b4045d64225..5efb2aa1c7d 100644 --- a/theme/classic/templates/contentonly.mustache +++ b/theme/classic/templates/contentonly.mustache @@ -54,7 +54,7 @@
-
+
{{{ output.course_content_header }}} {{#headercontent}} {{> core/activity_header }} @@ -62,7 +62,7 @@ {{{ output.main_content }}} {{{ output.activity_navigation }}} {{{ output.course_content_footer }}} -
+
diff --git a/theme/classic/templates/secure.mustache b/theme/classic/templates/secure.mustache index 37b539dd0f2..74aaaa93913 100644 --- a/theme/classic/templates/secure.mustache +++ b/theme/classic/templates/secure.mustache @@ -71,7 +71,7 @@
-
+
{{{ output.course_content_header }}} @@ -82,7 +82,7 @@ {{{ output.course_content_footer }}}
-
+
From 03adce20fc52cbdc99ac49015eff9ff6faab461e Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Fri, 21 Jun 2024 16:52:22 +0800 Subject: [PATCH 02/10] MDL-67683 theme: Do not use section for block containers The containers for the blocks in layout templates should not be using a
tag (which has a default landmark role of "region") as the blocks are already contained in an
{{#hasblocks}} -
+
{{{ addblockbutton }}} {{{ sidepreblocks }}} -
+ {{/hasblocks}} diff --git a/theme/boost/templates/drawers.mustache b/theme/boost/templates/drawers.mustache index 679332b2781..bd4cf97099d 100644 --- a/theme/boost/templates/drawers.mustache +++ b/theme/boost/templates/drawers.mustache @@ -79,10 +79,10 @@ {{$id}}theme_boost-drawers-blocks{{/id}} {{$drawerclasses}}drawer drawer-right{{#blockdraweropen}} show{{/blockdraweropen}}{{/drawerclasses}} {{$drawercontent}} -
+
{{{ addblockbutton }}} {{{ sidepreblocks }}} -
+ {{/drawercontent}} {{$drawerpreferencename}}drawer-open-block{{/drawerpreferencename}} {{$forceopen}}{{#forceblockdraweropen}}1{{/forceblockdraweropen}}{{/forceopen}} diff --git a/theme/boost/templates/embedded.mustache b/theme/boost/templates/embedded.mustache index fe8dff905a7..167ddd63953 100644 --- a/theme/boost/templates/embedded.mustache +++ b/theme/boost/templates/embedded.mustache @@ -56,9 +56,9 @@ {{{ output.standard_top_of_body_html }}}
{{#hasfakeblocks}} -
+
{{{ fakeblocks }}} -
+
{{/hasfakeblocks}}
{{#headercontent}} diff --git a/theme/boost/templates/secure.mustache b/theme/boost/templates/secure.mustache index c35d11225b6..75fe1a0e2c6 100644 --- a/theme/boost/templates/secure.mustache +++ b/theme/boost/templates/secure.mustache @@ -71,9 +71,9 @@ {{#hasblocks}} -
+
{{{ sidepreblocks }}} -
+ {{/hasblocks}} diff --git a/theme/classic/templates/columns.mustache b/theme/classic/templates/columns.mustache index 2fdfa234fb3..bac5c5595e5 100644 --- a/theme/classic/templates/columns.mustache +++ b/theme/classic/templates/columns.mustache @@ -80,15 +80,15 @@
-
+
{{{ sidepreblocks }}} -
+
-
+
{{{ sidepostblocks }}} -
+
diff --git a/theme/classic/templates/secure.mustache b/theme/classic/templates/secure.mustache index 74aaaa93913..9ba4aee7d87 100644 --- a/theme/classic/templates/secure.mustache +++ b/theme/classic/templates/secure.mustache @@ -85,15 +85,15 @@
-
+
{{{ sidepreblocks }}} -
+
-
+
{{{ sidepostblocks }}} -
+
From 4262d0c1eceadba37b09a19877f972eb38a4361d Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Fri, 21 Jun 2024 17:23:17 +0800 Subject: [PATCH 03/10] MDL-67683 blocks: Do not assign a complementary role for blocks Blocks are contained in an