MDL-81825 core: Replace sr_text() with visually_hidden_text()

In core renderer, replace 'sr_text' method with 'visually_hidden_text' to be
consistent with Bootstrap 5 upgrade.
This commit is contained in:
Mikel Martín
2024-12-10 14:02:34 +01:00
parent f9abc562f5
commit a973ea46d7
5 changed files with 25 additions and 4 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ class base_setting_ui {
return null;
}
$renderer = $PAGE->get_renderer('core_backup');
return $renderer->sr_text($this->altlabel);
return $renderer->visually_hidden_text($this->altlabel);
}
/**