aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2025-02-11 16:58:32 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-02-11 16:58:32 +0100
commit4a99127c3cdced499bf4d73b3efa47b155c6cc65 (patch)
treecc1c9cd2ae62a95d0ad4bb60ad1534f4642eb1d6 /templates
parent2138dda81a7edfbd62c1dee108af20c589c882ee (diff)
add aria tooltip role to tooltips, fixes #5238biest-5238
Diffstat (limited to 'templates')
-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>