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.
This commit is contained in:
Paul Holden 2021-07-27 15:17:21 +01:00
parent 206023c15f
commit 0bcb4f862a
3 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;