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}} -