diff --git a/theme/boost/scss/moodle/question.scss b/theme/boost/scss/moodle/question.scss index 7bcbce7b807..f545b6ebbda 100644 --- a/theme/boost/scss/moodle/question.scss +++ b/theme/boost/scss/moodle/question.scss @@ -229,7 +229,7 @@ body.path-question-type { /* Hacks to display the labels within a form group. */ - .form-group .sr-only:not(legend):not([for="id_category"]) { + .form-group .col-form-label.sr-only:not(legend):not([for="id_category"]) { position: static; width: auto; height: auto; diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index cc89d9003ce..48601b430e8 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -15814,7 +15814,7 @@ a.ygtvspacer:hover { body.path-question-type { /* Hacks to display the labels within a form group. */ } - body.path-question-type .form-group .sr-only:not(legend):not([for="id_category"]) { + body.path-question-type .form-group .col-form-label.sr-only:not(legend):not([for="id_category"]) { position: static; width: auto; height: auto; diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 75bd52a5002..f6dc46a5c9b 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -16041,7 +16041,7 @@ a.ygtvspacer:hover { body.path-question-type { /* Hacks to display the labels within a form group. */ } - body.path-question-type .form-group .sr-only:not(legend):not([for="id_category"]) { + body.path-question-type .form-group .col-form-label.sr-only:not(legend):not([for="id_category"]) { position: static; width: auto; height: auto;