Skip to content

Commit 85d42d2

Browse files
authored
[4.0] Add Joomla style tooltip in com_messages (#33776)
* add joomla style tooltip * php-cs * php cs more happy * indentation corrected * indent corrected again
1 parent c9b72a6 commit 85d42d2

File tree

1 file changed

+3
-2
lines changed
  • administrator/components/com_messages/src/Service/HTML

1 file changed

+3
-2
lines changed

administrator/components/com_messages/src/Service/HTML/Messages.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ public function status($i, $value = 0, $canChange = false)
4747
if ($canChange)
4848
{
4949
$html = '<a href="#" onclick="return Joomla.listItemTask(\'cb' . $i . '\',\'' . $state[1] . '\')" class="tbody-icon'
50-
. ($value == 1 ? ' active' : '') . '" title="' . Text::_($state[3]) . '"><span class="icon-'
51-
. $icon . '" aria-hidden="true"></span></a>';
50+
. ($value == 1 ? ' active' : '') . '" aria-labelledby="cb' . $state[0] . $i . '-desc"><span class="icon-'
51+
. $icon . '" aria-hidden="true"></span></a><div role="tooltip" id="cb' . $state[0] . $i
52+
. '-desc">' . Text::_($state[3]) . '</div>';
5253
}
5354

5455
return $html;

0 commit comments

Comments
 (0)