Skip to content

Commit

Permalink
MDL-81924 factor_sms: Improve MFA plugin table settings accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mickhawkins authored and HuongNV13 committed Sep 23, 2024
1 parent d5bdb07 commit c098b72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion admin/tool/mfa/classes/local/admin_setting_managemfa.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,12 @@ public function define_manage_mfa_table() {
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];
Expand Down
1 change: 1 addition & 0 deletions admin/tool/mfa/lang/en/tool_mfa.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
$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';
Expand Down

0 comments on commit c098b72

Please sign in to comment.