From 0bcb4f862a1abf62dddfdcd7d11197362195a526 Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Tue, 27 Jul 2021 15:17:21 +0100 Subject: [PATCH] MDL-72225 question: better specificity targetting form labels. Since e2150f7d added `sr-only` text to announce Atto editors on the page, that content appeared visible on question editing forms. We only want this content to be visible for form labels. --- theme/boost/scss/moodle/question.scss | 2 +- theme/boost/style/moodle.css | 2 +- theme/classic/style/moodle.css | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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;