Skip to content

Commit 7935d48

Browse files
authored
[4.0] Cassiopeia module header class (#31771)
* [4.0] Cassiopeia module header class Fixes a silly little error to make the module header class work as intended. ### To test Create a module and publish it in the sidebar-right position In the module options give it a header class eg broken ### before `<h3 class="brokencard-header broken "` ### After `<hr class="card-header broken"` * tidy * tidy
1 parent c7946c7 commit 7935d48

File tree

1 file changed

+1
-1
lines changed
  • templates/cassiopeia/html/layouts/chromes

1 file changed

+1
-1
lines changed

templates/cassiopeia/html/layouts/chromes/card.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
$headerAttribs['id'] = 'mod-' . $module->id;
3434

3535
if ($headerClass !== 'card-title') :
36-
$headerAttribs['class'] .= 'card-header ' . $headerClass;
36+
$headerAttribs['class'] = 'card-header ' . $headerClass;
3737
endif;
3838
else:
3939
$moduleAttribs['aria-label'] = $module->title;

0 commit comments

Comments
 (0)