diff options
Diffstat (limited to 'templates/shared/tooltip.php')
| -rw-r--r-- | templates/shared/tooltip.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/templates/shared/tooltip.php b/templates/shared/tooltip.php index a97c73f..513700f 100644 --- a/templates/shared/tooltip.php +++ b/templates/shared/tooltip.php @@ -1,5 +1,11 @@ -<span class="tooltip tooltip-icon <? if ($important) echo 'tooltip-important'; ?>" data-tooltip <? if (!$html) printf('title="%s"', htmlReady($text)) ?> tabindex="0"> -<? if ($html): ?> - <span class="tooltip-content"><?= $text ?></span> -<? endif; ?> +<?php +/** + * @var bool $important + * @var bool $html + * @var string $text + */ +?> +<span class="tooltip tooltip-icon <? if ($important) echo 'tooltip-important'; ?>" + tabindex="0" aria-label="<?= $html ? htmlReady(strip_tags($text)) : htmlReady($text) ?>"> + <span class="tooltip-content"><?= $html ? $text : htmlReady($text) ?></span> </span> |
