Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion themes/finna2/scss/finna/organisation-info.scss
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,9 @@ $organisation-info-max-w: 400px !default;
break-inside: avoid-column;
page-break-inside: avoid;
}
.service-tooltip {
.finna-toggletip {
padding: 0px;
margin-left: -6px;
color: $link-color;
text-align: left;
text-decoration: none;
Expand Down Expand Up @@ -592,6 +593,18 @@ $organisation-info-max-w: 400px !default;
.service-list {
column-count: 3;
}
.finna-toggletip {
padding: 0px;
margin-left: -6px;
color: $link-color;
text-align: left;
text-decoration: none;
background-color: inherit;
border: none;
.finna-toggletip__button {
text-align: left;
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@
<?php foreach ($services as $service): ?>
<div>
<?php if ($desc = $service['description'] ?: $service['shortDescription']): ?>
<?php $tooltipEsc = $this->transEscAttr('<h6>' . $this->cleanHtml($service['name']) . '</h6>' . $this->cleanHtml($desc)); ?>
<button type="button" class="service-tooltip" data-bs-toggle="tooltip" data-placement="bottom" data-html="true" data-original-title="<?=$tooltipEsc?>">
<?=$this->cleanHtml($service['name'])?>
</button>
<?php
$contentHtml = '<h6>' . $this->cleanHtml($service['name']) . '</h6>' . $this->cleanHtml($desc);
echo $this->component('finna-toggletip', [
'placement' => 'bottom',
'contentHtml' => $contentHtml,
'labelHtml' => $this->cleanHtml($service['name']),
]);
?>
<?php else: ?>
<?=$this->cleanHtml($service['name'])?>
<?php endif; ?>
Expand Down
Loading