aboutsummaryrefslogtreecommitdiff
path: root/lib/visual.inc.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 /lib/visual.inc.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 'lib/visual.inc.php')
-rw-r--r--lib/visual.inc.php15
1 files changed, 3 insertions, 12 deletions
diff --git a/lib/visual.inc.php b/lib/visual.inc.php
index 7b7ef10..0802606 100644
--- a/lib/visual.inc.php
+++ b/lib/visual.inc.php
@@ -596,12 +596,7 @@ function tooltipIcon($text, $important = false, $html = false): string
// render tooltip
$template = $GLOBALS['template_factory']->open('shared/tooltip');
- return $template->render([
- 'text' => $text,
- 'important' => $important,
- 'html' => $html,
- 'tooltip_id' => md5($text)
- ]);
+ return $template->render(compact('text', 'important', 'html'));
}
/**
@@ -613,13 +608,9 @@ function tooltipIcon($text, $important = false, $html = false): string
function tooltipHtmlIcon($text, $important = false)
{
// render tooltip
+ $html = true;
$template = $GLOBALS['template_factory']->open('shared/tooltip');
- return $template->render([
- 'text' => $text,
- 'important' => $important,
- 'html' => true,
- 'tooltip_id' => md5($text)
- ]);
+ return $template->render(compact('text', 'important', 'html'));
}
/**