Skip to content

Commit

Permalink
fix(shs-6081): condition to not display empty null tittle
Browse files Browse the repository at this point in the history
  • Loading branch information
Mari Nez committed Feb 19, 2025
1 parent 715350e commit b3aff9d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion docroot/modules/humsci/hs_layouts/hs_layouts.module
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function _hs_layouts_make_title_the_link(&$variables) {

if (!empty($variables['title'])) {
$title = is_array($variables['title']) ? $renderer->renderInIsolation($variables['title']) : $variables['title'];
$variables['title'] = $title ?? ['#markup' => trim(strip_tags($title))];
$variables['title'] = $title ? ['#markup' => trim(strip_tags($title))] : NULL;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@
}

&__title__link {
& > div {
display: inline-block;
}

&::after {
content: '';
display: inline-block;
Expand Down

0 comments on commit b3aff9d

Please sign in to comment.