diff --git a/grade/edit/tree/lib.php b/grade/edit/tree/lib.php index 8089a441210..519fa599529 100644 --- a/grade/edit/tree/lib.php +++ b/grade/edit/tree/lib.php @@ -831,12 +831,12 @@ class grade_edit_tree_column_name extends grade_edit_tree_column { 'id' => 'select_category_' . $category->id, 'name' => $togglegroup, 'value' => 1, - 'classes' => 'itemselect ignoredirty mr-2', + 'classes' => 'itemselect ignoredirty', 'label' => $masterlabel, // Consistent label to prevent the select column from resizing. 'selectall' => $masterlabel, 'deselectall' => $masterlabel, - 'labelclasses' => 'accesshide m-0', + 'labelclasses' => 'accesshide', ]); $mastercheckbox = $OUTPUT->render($mastercheckbox); diff --git a/grade/tests/behat/grade_aggregation_changes.feature b/grade/tests/behat/grade_aggregation_changes.feature index 08f5c0c9b90..33cb7622852 100644 --- a/grade/tests/behat/grade_aggregation_changes.feature +++ b/grade/tests/behat/grade_aggregation_changes.feature @@ -424,7 +424,6 @@ Feature: Changing the aggregation of an item affects its weight and extra credit And I set the field "Select Item a3" to "1" And I set the field "Select Item a4" to "1" And I click on "Move" "button" in the "sticky-footer" "region" - And I should not see "Cat natural &" in the "Move items" "dialogue" And I click on "Cat natural &" "list_item" in the "Move items" "dialogue" When I click on "Move" "button" in the "Move items" "dialogue" And I navigate to "View > Grader report" in the course gradebook @@ -566,7 +565,7 @@ Feature: Changing the aggregation of an item affects its weight and extra credit And I set the field "Select Item a3" to "1" And I set the field "Select Item a4" to "1" And I click on "Move" "button" in the "sticky-footer" "region" - And I click on "Course 1" "list_item" in the "Move items" "dialogue" + And I click on "Cat natural &" "list_item" in the "Move items" "dialogue" And I click on "Move" "button" in the "Move items" "dialogue" And I navigate to "View > Grader report" in the course gradebook And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page diff --git a/lib/templates/checkbox-toggleall-master.mustache b/lib/templates/checkbox-toggleall-master.mustache index 7b6f149db10..b54afdf7655 100644 --- a/lib/templates/checkbox-toggleall-master.mustache +++ b/lib/templates/checkbox-toggleall-master.mustache @@ -37,18 +37,18 @@ "labelclasses": "badge badge-info" } }} - -{{#label}} - -{{/label}} - +
+ + +
{{#js}} require(['core/checkbox-toggleall'], function(ToggleAll) { ToggleAll.init(); diff --git a/theme/boost/scss/moodle/grade.scss b/theme/boost/scss/moodle/grade.scss index 1874b8e9415..3aa67c66187 100644 --- a/theme/boost/scss/moodle/grade.scss +++ b/theme/boost/scss/moodle/grade.scss @@ -498,6 +498,10 @@ min-height: 30px; align-items: center; + .form-check { + padding: 0; + } + a { &.toggle-category { height: 24px; diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 7ef8fbd8cce..b5496b6c457 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -35742,6 +35742,9 @@ p.arrow_button { min-height: 30px; align-items: center; } +.path-grade-edit-tree .gradetree-wrapper .setup-grades.generaltable tr.category td.column-name div .form-check { + padding: 0; +} .path-grade-edit-tree .gradetree-wrapper .setup-grades.generaltable tr.category td.column-name div a.toggle-category { height: 24px; width: 24px; diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index b224d589fd4..d7cf220b09e 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -35742,6 +35742,9 @@ p.arrow_button { min-height: 30px; align-items: center; } +.path-grade-edit-tree .gradetree-wrapper .setup-grades.generaltable tr.category td.column-name div .form-check { + padding: 0; +} .path-grade-edit-tree .gradetree-wrapper .setup-grades.generaltable tr.category td.column-name div a.toggle-category { height: 24px; width: 24px;