Skip to content

Commit

Permalink
MDL-67968 question: do not display sr-only legends
Browse files Browse the repository at this point in the history
.accesshide was removed because:
 1. It was only kept in case it's still used somewhere, in a custom form
 field for instance.
 2. It was broken since 3.5 where we integrated
 bmbrands/moodle@ab65b87...MDL-62419-master
 So it's been ages that the reason mentioned on point 1 was not being
 satisfied
  • Loading branch information
rezaies committed Mar 6, 2020
1 parent 8fe311a commit a728edc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
7 changes: 1 addition & 6 deletions theme/boost/scss/moodle/question.scss
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,7 @@

body.path-question-type {
/* Hacks to display the labels within a form group. */
.fitem_fgroup .accesshide {
font: inherit;
position: static;
padding-right: .3em;
}
.form-group .sr-only {
.form-group .sr-only:not(legend) {
position: static;
width: auto;
height: auto;
Expand Down
6 changes: 1 addition & 5 deletions theme/boost/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -14917,11 +14917,7 @@ a.ygtvspacer:hover {

body.path-question-type {
/* Hacks to display the labels within a form group. */ }
body.path-question-type .fitem_fgroup .accesshide {
font: inherit;
position: static;
padding-right: .3em; }
body.path-question-type .form-group .sr-only {
body.path-question-type .form-group .sr-only:not(legend) {
position: static;
width: auto;
height: auto;
Expand Down
6 changes: 1 addition & 5 deletions theme/classic/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -15135,11 +15135,7 @@ a.ygtvspacer:hover {

body.path-question-type {
/* Hacks to display the labels within a form group. */ }
body.path-question-type .fitem_fgroup .accesshide {
font: inherit;
position: static;
padding-right: .3em; }
body.path-question-type .form-group .sr-only {
body.path-question-type .form-group .sr-only:not(legend) {
position: static;
width: auto;
height: auto;
Expand Down

0 comments on commit a728edc

Please sign in to comment.