MDL-81924 factor_sms: Improve MFA plugin table settings accessibility

This commit is contained in:
Michael Hawkins
2024-09-23 10:53:31 +07:00
committed by Huong Nguyen
parent d5bdb07c28
commit c098b72faa
2 changed files with 7 additions and 1 deletions
@@ -125,7 +125,12 @@ class admin_setting_managemfa extends \admin_setting {
foreach ($factors as $factor) {
$settingsparams = ['section' => 'factor_'.$factor->name];
$settingsurl = new \moodle_url('settings.php', $settingsparams);
$settingslink = \html_writer::link($settingsurl, $txt->settings);
$settingslinkattrtext = get_string('editfactor', 'tool_mfa', $factor->get_display_name());
$settingslinkattr = [
'title' => $settingslinkattrtext,
'aria-label' => $settingslinkattrtext,
];
$settingslink = \html_writer::link($settingsurl, $txt->settings, $settingslinkattr);
if ($factor->is_enabled()) {
$hideshowparams = ['action' => 'disable', 'factor' => $factor->name, 'sesskey' => $sesskey];
+1
View File
@@ -36,6 +36,7 @@ $string['confirmationrevoke'] = 'You will no longer be able to use \'{$a}\' to l
$string['connector'] = 'AND';
$string['debugmode:heading'] = 'Debug mode';
$string['devicename'] = 'Device';
$string['editfactor'] = 'Edit settings for the {$a} factor';
$string['entercode'] = 'Enter code';
$string['email:subject'] = 'Unable to log in to {$a}';
$string['enablefactor'] = 'Enable factor';