mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-81825 theme_boost: Refactor .sr-only usages for BS5
- Add .visually-hidden to the Boostratp 5 bridge SCSS file - Replace .sr-only occurrences with .visually-hidden - Replace .dropzone-sr-only-focusable with .dropzone-visually-hidden-focusable for consistency
This commit is contained in:
parent
0888a6d324
commit
f9abc562f5
220 changed files with 469 additions and 439 deletions
|
@ -245,7 +245,7 @@ class core_course_management_renderer extends plugin_renderer_base {
|
|||
$html .= html_writer::start_div('float-start ' . $checkboxclass);
|
||||
$html .= html_writer::start_div('custom-control custom-checkbox me-1 ');
|
||||
$html .= html_writer::empty_tag('input', $bcatinput);
|
||||
$labeltext = html_writer::span(get_string('bulkactionselect', 'moodle', $text), 'sr-only');
|
||||
$labeltext = html_writer::span(get_string('bulkactionselect', 'moodle', $text), 'visually-hidden');
|
||||
$html .= html_writer::tag('label', $labeltext, array(
|
||||
'class' => 'custom-control-label',
|
||||
'for' => 'categorylistitem' . $category->id));
|
||||
|
@ -626,7 +626,7 @@ class core_course_management_renderer extends plugin_renderer_base {
|
|||
$html .= html_writer::start_div('float-start ' . $checkboxclass);
|
||||
$html .= html_writer::start_div('custom-control custom-checkbox me-1 ');
|
||||
$html .= html_writer::empty_tag('input', $bulkcourseinput);
|
||||
$labeltext = html_writer::span(get_string('bulkactionselect', 'moodle', $text), 'sr-only');
|
||||
$labeltext = html_writer::span(get_string('bulkactionselect', 'moodle', $text), 'visually-hidden');
|
||||
$html .= html_writer::tag('label', $labeltext, array(
|
||||
'class' => 'custom-control-label',
|
||||
'for' => 'courselistitem' . $course->id));
|
||||
|
@ -1205,7 +1205,7 @@ class core_course_management_renderer extends plugin_renderer_base {
|
|||
if ($bulkcourseinput) {
|
||||
$html .= html_writer::start_div('custom-control custom-checkbox me-1');
|
||||
$html .= html_writer::empty_tag('input', $bulkcourseinput);
|
||||
$labeltext = html_writer::span(get_string('bulkactionselect', 'moodle', $text), 'sr-only');
|
||||
$labeltext = html_writer::span(get_string('bulkactionselect', 'moodle', $text), 'visually-hidden');
|
||||
$html .= html_writer::tag('label', $labeltext, array(
|
||||
'class' => 'custom-control-label',
|
||||
'for' => 'coursesearchlistitem' . $course->id));
|
||||
|
|
|
@ -96,7 +96,7 @@ class activity_navigation implements renderable, templatable {
|
|||
// Render the activity list dropdown menu if available.
|
||||
if (!empty($activitylist)) {
|
||||
$select = new url_select($activitylist, '', array('' => get_string('jumpto')));
|
||||
$select->set_label(get_string('jumpto'), array('class' => 'sr-only'));
|
||||
$select->set_label(get_string('jumpto'), ['class' => 'visually-hidden']);
|
||||
$select->attributes = array('id' => 'jump-to-activity');
|
||||
$this->activitylist = $select;
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@ class category_action_bar extends manage_categories_action_bar {
|
|||
}
|
||||
$currenturl = new moodle_url($this->page->url, ['categoryid' => $this->category->id]);
|
||||
$select = new \url_select($options, $currenturl, null);
|
||||
$select->set_label(get_string('categories'), ['class' => 'sr-only']);
|
||||
$select->set_label(get_string('categories'), ['class' => 'visually-hidden']);
|
||||
$select->class .= ' text-truncate w-100';
|
||||
return $select->export_for_template($output);
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@ class completion_action_bar implements templatable, renderable {
|
|||
);
|
||||
$selectmenu->set_label(
|
||||
get_string('coursecompletionnavigation', 'completion'),
|
||||
['class' => 'sr-only']
|
||||
['class' => 'visually-hidden']
|
||||
);
|
||||
|
||||
return [
|
||||
|
|
|
@ -88,7 +88,7 @@ class manage_categories_action_bar implements \renderable {
|
|||
|
||||
if ($content) {
|
||||
$urlselect = new \url_select($content, $activeurl, null);
|
||||
$urlselect->set_label(get_string('viewing'), ['class' => 'sr-only']);
|
||||
$urlselect->set_label(get_string('viewing'), ['class' => 'visually-hidden']);
|
||||
return $urlselect->export_for_template($output);
|
||||
}
|
||||
|
||||
|
@ -117,7 +117,7 @@ class manage_categories_action_bar implements \renderable {
|
|||
}
|
||||
|
||||
$select = new \url_select($options, $currenturl);
|
||||
$select->set_label(get_string('category'), ['class' => 'sr-only']);
|
||||
$select->set_label(get_string('category'), ['class' => 'visually-hidden']);
|
||||
$select->class .= ' text-truncate w-100';
|
||||
return $select->export_for_template($output);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue