aboutsummaryrefslogtreecommitdiff
path: root/templates/shared/tooltip.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/shared/tooltip.php')
-rw-r--r--templates/shared/tooltip.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/shared/tooltip.php b/templates/shared/tooltip.php
index a97c73f..8dbcd38 100644
--- a/templates/shared/tooltip.php
+++ b/templates/shared/tooltip.php
@@ -1,5 +1,4 @@
-<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; ?>
+<span class="tooltip tooltip-icon <? if ($important) echo 'tooltip-important'; ?>"
+ tabindex="0" aria-label="<?= $html ? kill_format($text) : htmlReady($text) ?>">
+ <span class="tooltip-content"><?= $html ? $text : htmlReady($text) ?></span>
</span>