From 958e767134ce6db2dfb6f519cc1ba66b63cb72ec Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Thu, 3 Apr 2025 14:02:12 +0100 Subject: [PATCH] MDL-85100 question: override `visually-hidden` grouped element labels. Since f9abc562 switched the class from `sr-only`, the affected labels used on the question editing form remained invisible. --- theme/boost/scss/moodle/question.scss | 14 +++++--------- theme/boost/style/moodle.css | 14 +++++--------- theme/classic/style/moodle.css | 14 +++++--------- 3 files changed, 15 insertions(+), 27 deletions(-) diff --git a/theme/boost/scss/moodle/question.scss b/theme/boost/scss/moodle/question.scss index fe5c73ced86..efe70079ef4 100644 --- a/theme/boost/scss/moodle/question.scss +++ b/theme/boost/scss/moodle/question.scss @@ -250,15 +250,11 @@ 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"], [for="id_filetypeslist"]) { - position: static; - width: auto; - height: auto; - padding: 0; - margin: 0 0.5rem 0 0; - overflow: visible; - clip: auto; - clip-path: none; - border: 0; + /* stylelint-disable declaration-no-important */ + position: static !important; + width: auto !important; + overflow: visible !important; + /* stylelint-enable declaration-no-important */ } } diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 8dd69739ada..de41a939f3c 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -33942,15 +33942,11 @@ 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], [for=id_filetypeslist]) { - position: static; - width: auto; - height: auto; - padding: 0; - margin: 0 0.5rem 0 0; - overflow: visible; - clip: auto; - clip-path: none; - border: 0; + /* stylelint-disable declaration-no-important */ + position: static !important; + width: auto !important; + overflow: visible !important; + /* stylelint-enable declaration-no-important */ } .que { diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index ab4598b41dd..e5b2619f269 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -33942,15 +33942,11 @@ 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], [for=id_filetypeslist]) { - position: static; - width: auto; - height: auto; - padding: 0; - margin: 0 0.5rem 0 0; - overflow: visible; - clip: auto; - clip-path: none; - border: 0; + /* stylelint-disable declaration-no-important */ + position: static !important; + width: auto !important; + overflow: visible !important; + /* stylelint-enable declaration-no-important */ } .que { -- 2.43.0