From 13104010566fc72eee642cfcf5701b9ebedf49da Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Mon, 11 Sep 2023 13:57:59 +0800 Subject: [PATCH] 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. --- lib/weblib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 2fa4d64442f..ec421819584 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2416,7 +2416,7 @@ function link_arrow_right($text, $url='', $accesshide=false, $addclass='', $addp if (!$url) { $arrowclass .= $addclass; } - $arrow = ''.$OUTPUT->rarrow().''; + $arrow = ''; $htmltext = ''; if ($text) { $htmltext = ''.$text.' '; @@ -2458,7 +2458,7 @@ function link_arrow_left($text, $url='', $accesshide=false, $addclass='', $addpa if (! $url) { $arrowclass .= $addclass; } - $arrow = ''.$OUTPUT->larrow().''; + $arrow = ''; $htmltext = ''; if ($text) { $htmltext = ' '.$text.'';