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:
parent
33531d47c2
commit
41ce02a620
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue