mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-77651 core: Hide left/right arrow characters for link_arrow_xx()
* The arrow characters in link_arrow_right() and link_arrow_left() functions get announced by screen readers. This causes confusion and is unnecessary.
This commit is contained in:
parent
d188d58ce9
commit
cc9a537bd2
@ -2402,7 +2402,7 @@ function link_arrow_right($text, $url='', $accesshide=false, $addclass='', $addp
|
||||
if (!$url) {
|
||||
$arrowclass .= $addclass;
|
||||
}
|
||||
$arrow = '<span class="'.$arrowclass.'">'.$OUTPUT->rarrow().'</span>';
|
||||
$arrow = '<span class="'.$arrowclass.'" aria-hidden="true">'.$OUTPUT->rarrow().'</span>';
|
||||
$htmltext = '';
|
||||
if ($text) {
|
||||
$htmltext = '<span class="arrow_text">'.$text.'</span> ';
|
||||
@ -2444,7 +2444,7 @@ function link_arrow_left($text, $url='', $accesshide=false, $addclass='', $addpa
|
||||
if (! $url) {
|
||||
$arrowclass .= $addclass;
|
||||
}
|
||||
$arrow = '<span class="'.$arrowclass.'">'.$OUTPUT->larrow().'</span>';
|
||||
$arrow = '<span class="'.$arrowclass.'" aria-hidden="true">'.$OUTPUT->larrow().'</span>';
|
||||
$htmltext = '';
|
||||
if ($text) {
|
||||
$htmltext = ' <span class="arrow_text">'.$text.'</span>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user