aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2024-05-28 15:22:18 +0000
committerMoritz Strohm <strohm@data-quest.de>2024-05-29 10:12:43 +0200
commitffed2f112e9be1e4c9ad41343ad104d70f5cfde2 (patch)
tree7e38c39daf85e9d87afb8b90c28b1e3d9e06bc8f /templates
parent693b260418cb1eca400474ea2edb4b2a7e2ca4ea (diff)
fixed screen reader output for tooltips, fixes #3962
Closes #3962 Merge request studip/studip!2859 (cherry picked from commit 062a7f9a03ae39ed083f42d89681318fb0cd6321) 8c8a2717 fixed screen reader output for tooltips 90bb9ad0 removed random bytes generation de8dea17 changed HTML of tooltips 3889963b added another possibility for tooltip content 93bcc22f removed unnecessary code from bootstrap/tooltip.js 039d1b19 use grid width for tooltips, disabled remaining code in bootstrap/tooltip.js 4ceb886e fixed typo 82479659 fixed errors, removed unused code be9a55e8 re-formatted scss code 904c374a removed tooltip.js files 30c79de4 removed reference to lib/tooltip.js c62fe83f removed reference to Tooltip object
Diffstat (limited to 'templates')
-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>