mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-04 10:11:26 +01:00
Add missing aria-label, change notification button to et2-button-icon
This commit is contained in:
parent
30923f8b6d
commit
dc083c10e8
@ -252,7 +252,8 @@ class kdots_framework extends Api\Framework\Ajax
|
||||
{
|
||||
$mode = $GLOBALS['egw_info']['user']['preferences']['common']['darkmode'] == 1 ? 'dark' : 'light';
|
||||
return '<egw-darkmode-toggle title="' . lang("%1 mode", $mode) . '" class="' .
|
||||
($mode == 'dark' ? 'darkmode_on' : '') . '"' . ($mode == 'dark' ? 'darkmode' : '') . '> </egw-darkmode-toggle>';
|
||||
($mode == 'dark' ? 'darkmode_on' : '') . '"' . ($mode == 'dark' ? 'darkmode' : '') .
|
||||
' aria-label="' . lang('Dark mode') . '"> </egw-darkmode-toggle>';
|
||||
}
|
||||
|
||||
/**
|
||||
@ -268,7 +269,7 @@ class kdots_framework extends Api\Framework\Ajax
|
||||
// This should all be handled by notification app
|
||||
$path = "../../notifications/js/Et2NotificationBell.js";
|
||||
self::includeJS($path . '?' . filemtime(EGW_SERVER_ROOT . $path));
|
||||
return '<button class="topmenu_info_item" id="topmenu_info_notifications"></button>';
|
||||
return '<et2-button-icon class="topmenu_info_item" aria-label="' . lang('notifications') . '" id="topmenu_info_notifications" name="bell-fill" nosubmit></et2-button-icon>';
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user