mirror of
https://github.com/moodle/moodle.git
synced 2025-03-20 07:30:01 +01: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
769c67045f
commit
1310401056
@ -2416,7 +2416,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> ';
|
||||
@ -2458,7 +2458,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