aboutsummaryrefslogtreecommitdiff
path: root/templates/shared/tooltip.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-06-24 13:32:09 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-06-24 13:32:09 +0000
commit50371cbb71065fe95dbcef52d79e13d3db1ccb41 (patch)
tree5843bb3ff74f347c08a05a0e6c73ed464ccbdc84 /templates/shared/tooltip.php
parent64e35ff574d272d9bf22e2dcd45d37498159db4a (diff)
add aria-label to all tooltips and align usage in vue as well, fixes #4330
Closes #4330 Merge request studip/studip!3132
Diffstat (limited to 'templates/shared/tooltip.php')
-rw-r--r--templates/shared/tooltip.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/shared/tooltip.php b/templates/shared/tooltip.php
index 513700f..207eaa2 100644
--- a/templates/shared/tooltip.php
+++ b/templates/shared/tooltip.php
@@ -5,7 +5,10 @@
* @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="as-link tooltip tooltip-icon <? if ($important) echo 'tooltip-important'; ?>"
+ tabindex="0"
+ data-tooltip
+ aria-label="<?= htmlReady($html ? strip_tags($text) : $text) ?>"
+>
<span class="tooltip-content"><?= $html ? $text : htmlReady($text) ?></span>
</span>