diff --git a/theme/boost/scss/moodle/question.scss b/theme/boost/scss/moodle/question.scss index b648e209a9f..7bcbce7b807 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) { + .form-group .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 a5b7a9827a3..3700629b0ba 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -15600,7 +15600,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) { + body.path-question-type .form-group .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 57370d6f12c..99034e1b1ba 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -15820,7 +15820,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) { + body.path-question-type .form-group .sr-only:not(legend):not([for="id_category"]) { position: static; width: auto; height: auto;