From f9abc562f56e3964cdf5ec56057137d6cec961cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mikel=20Mart=C3=ADn?= Date: Fri, 8 Nov 2024 10:35:21 +0100 Subject: [PATCH] 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 --- .../classes/table/plugin_management_table.php | 2 +- admin/templates/header_search_input.mustache | 4 +- .../templates/setting_configduration.mustache | 2 +- .../templates/setting_configfilesize.mustache | 2 +- admin/templates/setting_configtime.mustache | 4 +- admin/templates/setting_configtoggle.mustache | 4 +- .../themeselector/theme_card.mustache | 8 ++-- .../content/bootstrap/components/badge.md | 2 +- .../content/bootstrap/components/carousel.md | 24 ++++++------ .../content/bootstrap/components/dropdowns.md | 36 +++++++++--------- .../content/bootstrap/components/forms.md | 22 +++++------ .../bootstrap/components/input-group.md | 8 ++-- .../content/bootstrap/components/navbar.md | 24 ++++++------ .../content/bootstrap/components/spinners.md | 30 +++++++-------- .../content/moodle/components/toggle.md | 4 +- .../content/moodle/themes/text.md | 4 +- .../hugo/site/layouts/_default/docs.html | 2 +- ...ut-warning-color-assistive-technologies.md | 2 +- .../hugo/site/layouts/partials/skippy.html | 2 +- .../site/layouts/shortcodes/mustache.html | 2 +- .../examples/toggle/example.mustache | 2 +- .../customlang/templates/translator.mustache | 2 +- .../templates/request_filter.mustache | 2 +- .../moodlenet/templates/select_page.mustache | 4 +- .../moodlenet/templates/view-cards.mustache | 2 +- .../templates/acceptances_filter.mustache | 2 +- .../aiplacement_action_management_table.php | 2 +- .../aiprovider_action_management_table.php | 2 +- .../courseassist/templates/drawer.mustache | 2 +- backup/util/helper/backup_helper.class.php | 2 +- .../templates/course-action-menu.mustache | 10 ++--- .../templates/progress-bar.mustache | 2 +- .../myoverview/templates/view-cards.mustache | 4 +- .../myoverview/templates/view-list.mustache | 8 ++-- .../templates/view-summary.mustache | 10 ++--- .../templates/course-card.mustache | 2 +- calendar/renderer.php | 2 +- calendar/templates/header.mustache | 2 +- calendar/templates/month_detailed.mustache | 6 +-- calendar/templates/month_mini.mustache | 4 +- comment/lib.php | 2 +- contentbank/classes/output/bankcontent.php | 2 +- course/classes/management_renderer.php | 6 +-- course/classes/output/activity_navigation.php | 2 +- course/classes/output/category_action_bar.php | 2 +- .../classes/output/completion_action_bar.php | 2 +- .../output/manage_categories_action_bar.php | 4 +- .../local/content/cm/bulkselect.mustache | 2 +- .../content/cm/completion_dialog.mustache | 6 +-- .../local/content/movecmsection.mustache | 4 +- .../local/content/section/bulkselect.mustache | 2 +- .../local/content/section/content.mustache | 2 +- .../local/content/section/header.mustache | 4 +- .../local/courseindex/section.mustache | 4 +- course/templates/activity_list.mustache | 4 +- .../templates/completion_action_bar.mustache | 2 +- course/templates/coursecard.mustache | 6 +-- .../defaultactivitycompletion.mustache | 4 +- course/templates/favouriteicon.mustache | 2 +- .../local/activitychooser/item.mustache | 2 +- .../templates/participants_actionbar.mustache | 2 +- course/templates/view-cards.mustache | 2 +- grade/classes/output/general_action_bar.php | 2 +- .../grades/grader/gradingpanel.mustache | 12 +++--- grade/grading/form/rubric/renderer.php | 2 +- .../grades/grader/gradingpanel.mustache | 4 +- grade/report/grader/lib.php | 2 +- .../templates/collapse/collapsebody.mustache | 2 +- .../grader/templates/collapse/icon.mustache | 2 +- .../singleview/templates/bulkinsert.mustache | 4 +- grade/templates/cellmenu.mustache | 2 +- lib/amd/build/copy_to_clipboard.min.js | Bin 3484 -> 3492 bytes lib/amd/build/copy_to_clipboard.min.js.map | Bin 9499 -> 9516 bytes lib/amd/build/datafilter/filtertype.min.js | Bin 3722 -> 3730 bytes .../build/datafilter/filtertype.min.js.map | Bin 10488 -> 10497 bytes lib/amd/build/dropzone.min.js | Bin 2738 -> 2746 bytes lib/amd/build/dropzone.min.js.map | Bin 7625 -> 7633 bytes lib/amd/build/local/reactive/srlogger.min.js | Bin 1013 -> 1021 bytes .../build/local/reactive/srlogger.min.js.map | Bin 3527 -> 3560 bytes lib/amd/src/copy_to_clipboard.js | 4 +- lib/amd/src/datafilter/filtertype.js | 2 +- lib/amd/src/dropzone.js | 2 +- lib/amd/src/local/reactive/srlogger.js | 8 ++-- lib/classes/navigation/views/secondary.php | 4 +- lib/classes/output/core_renderer.php | 9 +++-- .../output/participants_action_bar.php | 2 +- lib/classes/report_helper.php | 2 +- .../moodle-atto_h5p-button-debug.js | Bin 22413 -> 22421 bytes .../moodle-atto_h5p-button-min.js | Bin 9040 -> 9048 bytes .../moodle-atto_h5p-button.js | Bin 22413 -> 22421 bytes .../plugins/h5p/yui/src/button/js/button.js | 2 +- .../moodle-atto_media-button-debug.js | Bin 52665 -> 52673 bytes .../moodle-atto_media-button-min.js | Bin 26567 -> 26575 bytes .../moodle-atto_media-button.js | Bin 52665 -> 52673 bytes .../plugins/media/yui/src/button/js/button.js | 2 +- .../moodle-editor_atto-editor-debug.js | Bin 108926 -> 108956 bytes .../moodle-editor_atto-editor-min.js | Bin 26270 -> 26278 bytes .../moodle-editor_atto-editor.js | Bin 106574 -> 106604 bytes lib/editor/atto/yui/src/editor/js/editor.js | 4 +- .../aiplacement/templates/loading.mustache | 2 +- .../tiny/plugins/h5p/templates/modal.mustache | 2 +- .../embed_media_modal_audio.mustache | 6 +-- .../embed_media_modal_video.mustache | 6 +-- lib/form/dndupload.js | 4 +- lib/form/templates/editor_textarea.mustache | 2 +- .../templates/element-date_selector.mustache | 2 +- .../element-date_time_selector.mustache | 2 +- .../templates/element-defaultcustom.mustache | 2 +- .../templates/element-filemanager.mustache | 2 +- .../templates/element-filepicker.mustache | 2 +- lib/form/templates/element-group.mustache | 2 +- lib/form/templates/element-header.mustache | 4 +- .../element-template-inline.mustache | 2 +- lib/form/templates/element-template.mustache | 4 +- lib/templates/activity_header.mustache | 2 +- lib/templates/block.mustache | 2 +- .../autocomplete_selection.mustache | 2 +- lib/templates/datafilter/filter_row.mustache | 4 +- .../filtertypes/binary_selector.mustache | 2 +- lib/templates/dropzone.mustache | 2 +- .../filemanager_default_searchform.mustache | 2 +- .../filemanager_page_generallayout.mustache | 8 ++-- .../filemanager_selectlayout.mustache | 2 +- .../form_autocomplete_selection.mustache | 2 +- lib/templates/loginform.mustache | 12 +++--- .../send_activity_modal_base.mustache | 2 +- lib/templates/notification_base.mustache | 2 +- lib/templates/paging_bar.mustache | 10 ++--- lib/templates/search_input.mustache | 4 +- lib/templates/search_input_auto.mustache | 4 +- lib/templates/search_input_navbar.mustache | 8 ++-- lib/templates/select_time.mustache | 2 +- lib/templates/skip_links.mustache | 2 +- lib/templates/toggle.mustache | 2 +- message/templates/message_drawer.mustache | 2 +- ...message_drawer_conversations_list.mustache | 2 +- ...message_drawer_view_contacts_body.mustache | 2 +- ...iew_conversation_footer_edit_mode.mustache | 2 +- ...ssage_drawer_view_overview_header.mustache | 2 +- ...sage_drawer_view_overview_section.mustache | 4 +- ...drawer_view_settings_body_content.mustache | 2 +- message/templates/message_jumpto.mustache | 2 +- message/templates/message_popover.mustache | 2 +- message/templates/send_bulk_message.mustache | 2 +- .../grading_navigation_user_selector.mustache | 2 +- .../search_input_recordings.mustache | 4 +- mod/data/classes/output/action_bar.php | 6 +-- mod/data/templates/presets.mustache | 6 +-- .../classes/local/renderers/discussion.php | 2 +- .../report/summary/classes/summary_table.php | 2 +- mod/forum/templates/discussion_list.mustache | 4 +- ...m_discussion_nested_v2_first_post.mustache | 2 +- ...m_discussion_nested_v2_post_reply.mustache | 2 +- .../templates/forum_discussion_post.mustache | 4 +- .../grades/local/grader/grading.mustache | 2 +- .../grades/local/grader/user_picker.mustache | 2 +- .../classes/output/standard_action_bar.php | 2 +- .../templates/standard_action_menu.mustache | 2 +- .../classes/output/edit_action_area.php | 2 +- .../classes/output/override_action_menu.php | 2 +- .../classes/output/report_action_menu.php | 2 +- .../course_external_tools_list.php | 2 +- .../amd/build/edit_multiple_grades.min.js | Bin 9173 -> 9181 bytes .../amd/build/edit_multiple_grades.min.js.map | Bin 23052 -> 23060 bytes mod/quiz/amd/src/edit_multiple_grades.js | 2 +- mod/quiz/classes/output/edit_nav_actions.php | 2 +- mod/quiz/classes/output/edit_renderer.php | 6 +-- mod/quiz/templates/edit_grading_page.mustache | 4 +- mod/quiz/templates/question_slot.mustache | 2 +- .../moodle-mod_quiz-toolboxes-debug.js | Bin 44112 -> 44160 bytes .../moodle-mod_quiz-toolboxes-min.js | Bin 14082 -> 14114 bytes .../moodle-mod_quiz-toolboxes.js | Bin 44112 -> 44160 bytes mod/quiz/yui/src/toolboxes/js/section.js | 12 +++--- .../templates/column_sort_ui.mustache | 2 +- question/engine/lib.php | 4 +- .../tests/question_display_options_test.php | 10 ++++- question/type/essay/renderer.php | 12 +++--- question/type/gapselect/renderer.php | 2 +- question/type/multianswer/renderer.php | 4 +- .../multichoice/amd/build/clearchoice.min.js | Bin 1683 -> 1699 bytes .../amd/build/clearchoice.min.js.map | Bin 5996 -> 6022 bytes .../type/multichoice/amd/src/clearchoice.js | 6 +-- question/type/multichoice/renderer.php | 8 ++-- .../multichoice/tests/walkthrough_test.php | 2 +- question/type/numerical/renderer.php | 2 +- .../formulation_and_controls.mustache | 2 +- question/type/shortanswer/renderer.php | 2 +- question/type/truefalse/renderer.php | 2 +- .../type/truefalse/tests/walkthrough_test.php | 2 +- report/insights/classes/output/insight.php | 2 +- .../insights/classes/output/insights_list.php | 2 +- .../local/systemreports/report_schedules.php | 2 +- .../classes/table/base_report_table.php | 2 +- .../classes/table/system_report_table.php | 2 +- .../local/dynamictabs/access.mustache | 2 +- .../local/dynamictabs/audience.mustache | 2 +- .../local/dynamictabs/editor.mustache | 2 +- .../local/settings/conditions.mustache | 2 +- .../templates/local/settings/filters.mustache | 2 +- .../templates/local/settings/sorting.mustache | 2 +- .../local/sidebar-menu/area.mustache | 2 +- repository/filepicker.js | 4 +- sms/classes/table/sms_gateway_table.php | 2 +- theme/boost/scss/moodle/bs5-bridge.scss | 17 +++++++++ theme/boost/scss/moodle/calendar.scss | 2 +- theme/boost/scss/moodle/core.scss | 14 +++---- theme/boost/scss/moodle/modules.scss | 4 +- .../boost/scss/moodle/primarynavigation.scss | 2 +- theme/boost/scss/moodle/question.scss | 2 +- theme/boost/scss/moodle/variables.scss | 2 +- theme/boost/style/moodle.css | 24 ++++++------ theme/boost/templates/drawers.mustache | 4 +- theme/boost/templates/navbar.mustache | 2 +- .../templates/primary-drawer-mobile.mustache | 4 +- theme/classic/style/moodle.css | 24 ++++++------ user/classes/table/participants.php | 2 +- user/profile.php | 2 +- user/templates/add_bulk_note.mustache | 2 +- .../comboboxsearch/resultitem.mustache | 2 +- user/templates/send_bulk_message.mustache | 2 +- 220 files changed, 424 insertions(+), 398 deletions(-) diff --git a/admin/classes/table/plugin_management_table.php b/admin/classes/table/plugin_management_table.php index 6b143ae7d35..bb339be0220 100644 --- a/admin/classes/table/plugin_management_table.php +++ b/admin/classes/table/plugin_management_table.php @@ -322,7 +322,7 @@ abstract class plugin_management_table extends flexible_table implements dynamic ], 'title' => $labelstr, 'label' => $labelstr, - 'labelclasses' => 'sr-only', + 'labelclasses' => 'visually-hidden', ]; return $OUTPUT->render_from_template('core_admin/setting_configtoggle', $params); diff --git a/admin/templates/header_search_input.mustache b/admin/templates/header_search_input.mustache index eed7f6a2971..5a4372a73cf 100644 --- a/admin/templates/header_search_input.mustache +++ b/admin/templates/header_search_input.mustache @@ -29,7 +29,7 @@
diff --git a/admin/templates/setting_configduration.mustache b/admin/templates/setting_configduration.mustache index 363830f60dc..6b5d86180bb 100644 --- a/admin/templates/setting_configduration.mustache +++ b/admin/templates/setting_configduration.mustache @@ -41,7 +41,7 @@
- + - + {{#hours}} {{/hours}} : - + {{/actionurl}} diff --git a/admin/tool/componentlibrary/content/bootstrap/components/badge.md b/admin/tool/componentlibrary/content/bootstrap/components/badge.md index 7d55cabcfd1..32ed961b87a 100644 --- a/admin/tool/componentlibrary/content/bootstrap/components/badge.md +++ b/admin/tool/componentlibrary/content/bootstrap/components/badge.md @@ -34,7 +34,7 @@ Unless the context is clear (as with the "Notifications" example, where it is un {{< example >}} {{< /example >}} diff --git a/admin/tool/componentlibrary/content/bootstrap/components/carousel.md b/admin/tool/componentlibrary/content/bootstrap/components/carousel.md index d23810cc61a..235874a2c18 100644 --- a/admin/tool/componentlibrary/content/bootstrap/components/carousel.md +++ b/admin/tool/componentlibrary/content/bootstrap/components/carousel.md @@ -65,11 +65,11 @@ Adding in the previous and next controls. We recommend using `
{{< /example >}} @@ -98,11 +98,11 @@ You can also add the indicators to the carousel, alongside the controls, too. {{< /example >}} @@ -143,11 +143,11 @@ Add captions to your slides easily with the `.carousel-caption` element within a {{< /example >}} @@ -171,11 +171,11 @@ Add `.carousel-fade` to your carousel to animate slides with a fade transition i {{< /example >}} @@ -199,11 +199,11 @@ Add `data-interval=""` to a `.carousel-item` to change the amount of time to del {{< /example >}} @@ -227,11 +227,11 @@ Carousels support swiping left/right on touchscreen devices to move between slid {{< /example >}} diff --git a/admin/tool/componentlibrary/content/bootstrap/components/dropdowns.md b/admin/tool/componentlibrary/content/bootstrap/components/dropdowns.md index 315dc082e7c..4219256eb6f 100644 --- a/admin/tool/componentlibrary/content/bootstrap/components/dropdowns.md +++ b/admin/tool/componentlibrary/content/bootstrap/components/dropdowns.md @@ -150,7 +150,7 @@ We use this extra class to reduce the horizontal `padding` on either side of the