Skip to content
Snippets Groups Projects
Commit 00db179b authored by Moritz Strohm's avatar Moritz Strohm
Browse files

fix for BIESt #533

parent c2b09a90
No related branches found
No related tags found
No related merge requests found
...@@ -330,7 +330,9 @@ class Icon ...@@ -330,7 +330,9 @@ class Icon
]); ]);
if (!isset($result['alt']) && !isset($result['title'])) { if (!isset($result['alt']) && !isset($result['title'])) {
$result['alt'] = basename($this->shape); //Add an empty alt attribute to prevent screen readers from
//reading the URL of the icon:
$result['alt'] = '';
} }
$classNames = 'icon-role-' . $this->role; $classNames = 'icon-role-' . $this->role;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment