Hide user name from screen readers

The user name will be available to screen readers from the adjacent 
avatar's aria-label
This commit is contained in:
Michael Vickers 2020-10-03 12:08:26 +01:00 committed by Frédéric Guillot
parent 33531d47c2
commit 41ce02a620
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class UserMentionFormatter extends BaseFormatter implements FormatterInterface
$html .= ' '.$this->helper->text->e($user['username']);
if (! empty($user['name'])) {
$html .= ' <small>'.$this->helper->text->e($user['name']).'</small>';
$html .= ' <small aria-hidden="true">'.$this->helper->text->e($user['name']).'</small>';
}
$result[] = array(