aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/shared/tooltip.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/shared/tooltip.php b/templates/shared/tooltip.php
index 9b9cb64..a2598c6 100644
--- a/templates/shared/tooltip.php
+++ b/templates/shared/tooltip.php
@@ -3,15 +3,17 @@
* @var bool $important
* @var bool $html
* @var string $text
+ * @var bool $alt_info
*/
?>
-<span
+<span
class="as-link tooltip tooltip-icon
- <? if ($important) echo 'tooltip-important'; ?>
+ <? if ($important) echo 'tooltip-important'; ?>
<? if ($alt_info) echo 'tooltip-info-alt'; ?>"
tabindex="0"
+ role="tooltip"
data-tooltip
aria-label="<?= htmlReady($html ? strip_tags($text) : $text) ?>"
>
<span class="tooltip-content"><?= $html ? $text : htmlReady($text) ?></span>
-</span> \ No newline at end of file
+</span>