mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
Accessibiltiy: add alt tag for icons
Screen readers to not read title tags per default
This commit is contained in:
parent
472ad08090
commit
ac7354295a
@ -54,6 +54,7 @@ $this->addHelperFunction('icon', function ($img, $title = null, array $propertie
|
||||
'class' => 'icon',
|
||||
);
|
||||
if ($title !== null) {
|
||||
$attributes['alt'] = $title;
|
||||
$attributes['title'] = $title;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user