Accessibiltiy: add alt tag for icons

Screen readers to not read title tags per default
This commit is contained in:
Thomas Gelf 2014-06-20 14:28:19 +02:00
parent 472ad08090
commit ac7354295a
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ $this->addHelperFunction('icon', function ($img, $title = null, array $propertie
'class' => 'icon',
);
if ($title !== null) {
$attributes['alt'] = $title;
$attributes['title'] = $title;
}