1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 19:44:09 +02:00

Added aria-hidden to FontAwesome svg.

This commit is contained in:
Cameron
2022-06-05 17:56:32 -07:00
parent 72cdef912a
commit fb529a536d
2 changed files with 3 additions and 2 deletions

View File

@@ -174,7 +174,7 @@ class social_shortcodes extends e_shortcode
if($ret = file_get_contents($path))
{
$class = 'fa-'.$this->var['id'];
return str_replace('<svg', '<svg class="'.$class.'" role="img" ', $ret);
return str_replace('<svg', '<svg class="'.$class.'" role="img" aria-hidden="true" ', $ret);
}
}