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:
committed by
Frédéric Guillot
parent
33531d47c2
commit
41ce02a620
@@ -48,7 +48,7 @@ class UserMentionFormatter extends BaseFormatter implements FormatterInterface
|
|||||||
$html .= ' '.$this->helper->text->e($user['username']);
|
$html .= ' '.$this->helper->text->e($user['username']);
|
||||||
|
|
||||||
if (! empty($user['name'])) {
|
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(
|
$result[] = array(
|
||||||
|
|||||||
Reference in New Issue
Block a user