Skip to content

Commit

Permalink
MDL-68674 theme: Have block headers have h3 class="h5".
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed Feb 23, 2024
1 parent 5fff172 commit 0e3205a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/outputrenderers.php
Expand Up @@ -4128,9 +4128,10 @@ public function blocks($region, $classes = array(), $tag = 'aside', $fakeblockso
'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);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/templates/block.mustache
Expand Up @@ -39,7 +39,7 @@

{{! Block header }}
{{#title}}
<h5 id="instance-{{blockinstanceid}}-header" class="card-title d-inline">{{{title}}}</h5>
<h3 id="instance-{{blockinstanceid}}-header" class="h5 card-title d-inline">{{{title}}}</h3>
{{/title}}

{{#hascontrols}}
Expand Down

0 comments on commit 0e3205a

Please sign in to comment.