diff --git a/lib/form/templates/element-group.mustache b/lib/form/templates/element-group.mustache index 723a24789d7..6aac5cf4b21 100644 --- a/lib/form/templates/element-group.mustache +++ b/lib/form/templates/element-group.mustache @@ -8,7 +8,7 @@ {{/label}} {{$element}} {{#label}} -
+
{{label}}
{{#element.elements}} @@ -19,7 +19,7 @@
{{/label}} {{^label}} -
+
{{#element.elements}} {{{separator}}} diff --git a/theme/boost/scss/moodle/question.scss b/theme/boost/scss/moodle/question.scss index 80c2b9f19e7..fe5c73ced86 100644 --- a/theme/boost/scss/moodle/question.scss +++ b/theme/boost/scss/moodle/question.scss @@ -249,7 +249,7 @@ table.question-bank-table { body.path-question-type { /* Hacks to display the labels within a form group. */ - .fitem .col-form-label.visually-hidden:not(legend):not([for="id_category"]) { + .fitem .col-form-label.visually-hidden:not(legend):not([for="id_category"], [for="id_filetypeslist"]) { position: static; width: auto; height: auto; diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 6fae1d8d93f..fbec680adec 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -33941,7 +33941,7 @@ table.question-bank-table .header.checkbox .form-check { body.path-question-type { /* Hacks to display the labels within a form group. */ } -body.path-question-type .fitem .col-form-label.visually-hidden:not(legend):not([for=id_category]) { +body.path-question-type .fitem .col-form-label.visually-hidden:not(legend):not([for=id_category], [for=id_filetypeslist]) { position: static; width: auto; height: auto; diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 2c8cba2e4e1..edc00a79569 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -33941,7 +33941,7 @@ table.question-bank-table .header.checkbox .form-check { body.path-question-type { /* Hacks to display the labels within a form group. */ } -body.path-question-type .fitem .col-form-label.visually-hidden:not(legend):not([for=id_category]) { +body.path-question-type .fitem .col-form-label.visually-hidden:not(legend):not([for=id_category], [for=id_filetypeslist]) { position: static; width: auto; height: auto;