Skip to content

Commit a8d88f6

Browse files
committed
MDL-87345 theme: Replace usages of .accesshide with .visually-hidden
1 parent d9e26ff commit a8d88f6

171 files changed

Lines changed: 313 additions & 298 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

public/admin/filters.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function get_table_row(\core\plugininfo\filter $plugininfo, stdClass $state,
214214

215215
// Disable/off/on.
216216
$select = new single_select(filters_action_url($filter, 'setstate'), 'newstate', $activechoices, $state->active, null, 'active' . $filter);
217-
$select->set_label(get_string('isactive', 'filters'), ['class' => 'accesshide']);
217+
$select->set_label(get_string('isactive', 'filters'), ['class' => 'visually-hidden']);
218218
$row[] = $OUTPUT->render($select);
219219

220220
// Re-order.
@@ -239,7 +239,7 @@ function get_table_row(\core\plugininfo\filter $plugininfo, stdClass $state,
239239
// Apply to strings.
240240
$select = new single_select(filters_action_url($filter, 'setapplyto'),
241241
'stringstoo', $applytochoices, $applytostrings, null, 'applyto' . $filter);
242-
$select->set_label(get_string('applyto', 'filters'), ['class' => 'accesshide']);
242+
$select->set_label(get_string('applyto', 'filters'), ['class' => 'visually-hidden']);
243243
$select->disabled = ($state->active == TEXTFILTER_DISABLED);
244244
$row[] = $OUTPUT->render($select);
245245

public/admin/mnet/access_control.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
if (!empty($formerror['username'])) {
212212
echo '<span class="error"> * </span>';
213213
}
214-
echo html_writer::label(get_string('username'), 'menuusername', false, array('class' => 'accesshide'));
214+
echo html_writer::label(get_string('username'), 'menuusername', false, array('class' => 'visually-hidden'));
215215
echo '<input id="menuusername" type="text" name="username" size="20" maxlength="100" />';
216216

217217
// choose a remote host

public/admin/portfolio.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function portfolio_action_url($portfolio) {
192192
$currentaction = 'hide';
193193
}
194194
$select = new single_select(portfolio_action_url($pluginid, 'pf'), 'action', $actionchoicesforexisting, $currentaction, null, 'applyto' . $pluginid);
195-
$select->set_label(get_string('action'), array('class' => 'accesshide'));
195+
$select->set_label(get_string('action'), array('class' => 'visually-hidden'));
196196
$table->data[] = array($pluginname, $OUTPUT->render($select), $settings);
197197
}
198198
if (!in_array($plugin, $usedplugins)) {
@@ -214,7 +214,7 @@ function portfolio_action_url($portfolio) {
214214
$insaneplugins[] = $p;
215215
} else {
216216
$select = new single_select(portfolio_action_url($p, 'pf'), 'action', $actionchoicesfornew, 'delete', null, 'applyto' . $p);
217-
$select->set_label(get_string('action'), array('class' => 'accesshide'));
217+
$select->set_label(get_string('action'), array('class' => 'visually-hidden'));
218218
$table->data[] = array(portfolio_static_function($p, 'get_name'), $OUTPUT->render($select), '');
219219
}
220220
}

public/admin/repository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@
336336
$selectaction = new moodle_url($baseurl, ['sesskey' => sesskey(), 'repos' => $typename]);
337337
$select = new single_select($selectaction, 'action', $actionchoicesforexisting, $currentaction, null,
338338
'applyto' . basename($typename));
339-
$select->set_label(get_string('action'), array('class' => 'accesshide'));
339+
$select->set_label(get_string('action'), array('class' => 'visually-hidden'));
340340

341341
// Display up/down link
342342
$updown = '';
@@ -390,7 +390,7 @@
390390
$selectaction = new moodle_url($baseurl, ['sesskey' => sesskey(), 'repos' => $plugin]);
391391
$select = new single_select($selectaction, 'action', $actionchoicesfornew, 'delete', null,
392392
'applyto' . basename($plugin));
393-
$select->set_label(get_string('action'), array('class' => 'accesshide'));
393+
$select->set_label(get_string('action'), array('class' => 'visually-hidden'));
394394
$uninstall = '';
395395
if ($uninstallurl = core_plugin_manager::instance()->get_uninstall_url('repository_' . $plugin, 'manage')) {
396396
$uninstall = html_writer::link($uninstallurl, $struninstall);

public/admin/roles/classes/allow_role_page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function get_table() {
171171
$tooltip = $this->get_cell_tooltip($fromrole, $targetrole);
172172
$row[] = '<input type="checkbox" name="' . $name . '" id="' . $name .
173173
'" title="' . $tooltip . '" value="1" ' . $checked . $disabled . '/>' .
174-
'<label for="' . $name . '" class="accesshide">' . $tooltip . '</label>';
174+
'<label for="' . $name . '" class="visually-hidden">' . $tooltip . '</label>';
175175
}
176176
$table->data[] = $row;
177177
}

public/admin/searchareas.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
$laststatus = '';
199199
}
200200
$columns[] = $laststatus;
201-
$accesshide = html_writer::span($area->get_visible_name(), 'accesshide');
201+
$accesshide = html_writer::span($area->get_visible_name(), 'visually-hidden');
202202
$actions = [];
203203
$actions[] = $OUTPUT->pix_icon('t/delete', '') .
204204
html_writer::link(admin_searcharea_action_url('delete', $areaid),

public/admin/tool/admin_presets/templates/local/tables/actual_value_settings_table.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
}}
3434

3535
<table class="table generaltable admin_presets_skipped">
36-
<caption class="accesshide">{{{caption}}}</caption>
36+
<caption class="visually-hidden">{{{caption}}}</caption>
3737
<thead>
3838
<tr>
3939
<th scope="col">{{#str}}settingname, tool_admin_presets{{/str}}</th>

public/admin/tool/admin_presets/templates/local/tables/old_and_new_value_settings_table.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
}}
3838

3939
<table class="table generaltable admin_presets_applied">
40-
<caption class="accesshide">{{{caption}}}</caption>
40+
<caption class="visually-hidden">{{{caption}}}</caption>
4141
<thead>
4242
<tr>
4343
<th scope="col" class="w-50">{{#str}}settingname, tool_admin_presets{{/str}}</th>

public/admin/tool/admin_presets/templates/preset_applications_list.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
{{/noapplications}}
4444
{{#noapplications}}
4545
<table class="table generaltable boxaligncenter">
46-
<caption class="accesshide">{{#str}}presetapplicationslisttable, tool_admin_presets{{/str}}</caption>
46+
<caption class="visually-hidden">{{#str}}presetapplicationslisttable, tool_admin_presets{{/str}}</caption>
4747
<thead>
4848
<tr>
4949
<th scope="col">{{#str}}timeapplied, tool_admin_presets{{/str}}</th>

public/admin/tool/admin_presets/templates/presets_list.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
{{/nopresets}}
3939
{{^nopresets}}
4040
<table class="table generaltable mb-5">
41-
<caption class="accesshide">{{#str}}presetslisttable, tool_admin_presets{{/str}}</caption>
41+
<caption class="visually-hidden">{{#str}}presetslisttable, tool_admin_presets{{/str}}</caption>
4242
<thead>
4343
<tr>
4444
<th scope="col">{{#str}}name{{/str}}</th>

0 commit comments

Comments
 (0)