From f3f10bfab6aea41354063c5d715aeeb5c73868ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Thu, 4 May 2023 15:36:13 +0200 Subject: [PATCH] MDL-68674 theme: Have block headers have h3 class="h5". --- lib/outputrenderers.php | 5 +++-- lib/templates/block.mustache | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index d5312b07849..39a800c79a0 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -4177,9 +4177,10 @@ EOD; 'data-droptarget' => '1' ); if ($this->page->blocks->region_has_content($displayregion, $this)) { - $content = $this->blocks_for_region($displayregion, $fakeblocksonly); + $content = html_writer::tag('h2', get_string('blocks'), ['class' => 'sr-only']) . + $this->blocks_for_region($displayregion, $fakeblocksonly); } else { - $content = ''; + $content = html_writer::tag('h2', get_string('blocks'), ['class' => 'sr-only']); } return html_writer::tag($tag, $content, $attributes); } diff --git a/lib/templates/block.mustache b/lib/templates/block.mustache index aa3b0ac60be..fe61331c8a4 100644 --- a/lib/templates/block.mustache +++ b/lib/templates/block.mustache @@ -39,7 +39,7 @@ {{! Block header }} {{#title}} -
{{{title}}}
+

{{{title}}}

{{/title}} {{#hascontrols}}