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',
|
'class' => 'icon',
|
||||||
);
|
);
|
||||||
if ($title !== null) {
|
if ($title !== null) {
|
||||||
|
$attributes['alt'] = $title;
|
||||||
$attributes['title'] = $title;
|
$attributes['title'] = $title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue