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.
This commit is contained in:
Paul Holden
2025-04-03 14:02:12 +01:00
parent 1e89ba2335
commit 958e767134
3 changed files with 15 additions and 27 deletions
+5 -9
View File
@@ -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 */
}
}
+5 -9
View File
@@ -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 {
+5 -9
View File
@@ -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 {