Skip to content

Commit

Permalink
MDL-67970 output: use fieldset in core/chooser instead of label
Browse files Browse the repository at this point in the history
  • Loading branch information
rezaies committed Mar 17, 2020
1 parent 1cc8177 commit 50889d5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
14 changes: 6 additions & 8 deletions lib/templates/chooser.mustache
Expand Up @@ -57,14 +57,12 @@
</div>
<div class="alloptions">
{{#sections}}
<div class="moduletypetitle">
<label for="item_{{id}}">
<span class="typename">{{label}}</span>
</label>
</div>
{{#items}}
{{>core/chooser_item}}
{{/items}}
<fieldset>
<legend class="moduletypetitle">{{label}}</legend>
{{#items}}
{{>core/chooser_item}}
{{/items}}
</fieldset>
{{/sections}}
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions theme/boost/scss/moodle/core.scss
Expand Up @@ -1397,6 +1397,8 @@ body#page-lib-editor-tinymce-plugins-moodlemedia-preview {
text-transform: uppercase;
padding-top: 1.2em;
padding-bottom: 0.4em;
margin-bottom: 0.5rem;
font-size: 100%;
}

.choosercontainer #chooseform .option .typename,
Expand Down
4 changes: 3 additions & 1 deletion theme/boost/style/moodle.css
Expand Up @@ -9881,7 +9881,9 @@ body#page-lib-editor-tinymce-plugins-moodlemedia-preview {
.choosercontainer #chooseform .moduletypetitle {
text-transform: uppercase;
padding-top: 1.2em;
padding-bottom: 0.4em; }
padding-bottom: 0.4em;
margin-bottom: 0.5rem;
font-size: 100%; }

.choosercontainer #chooseform .option .typename,
.choosercontainer #chooseform .nonoption .typename {
Expand Down
4 changes: 3 additions & 1 deletion theme/classic/style/moodle.css
Expand Up @@ -10118,7 +10118,9 @@ body#page-lib-editor-tinymce-plugins-moodlemedia-preview {
.choosercontainer #chooseform .moduletypetitle {
text-transform: uppercase;
padding-top: 1.2em;
padding-bottom: 0.4em; }
padding-bottom: 0.4em;
margin-bottom: 0.5rem;
font-size: 100%; }

.choosercontainer #chooseform .option .typename,
.choosercontainer #chooseform .nonoption .typename {
Expand Down

0 comments on commit 50889d5

Please sign in to comment.