mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-80431 forms: do not use fieldset tag without a legend
This commit is contained in:
parent
38a3310c92
commit
36c91ff907
@ -7,17 +7,27 @@
|
||||
{{/element.hiddenlabel}}
|
||||
{{/label}}
|
||||
{{$element}}
|
||||
<fieldset class="w-100 m-0 p-0 border-0">
|
||||
{{#label}}
|
||||
{{#label}}
|
||||
<fieldset class="w-100 m-0 p-0 border-0">
|
||||
<legend class="sr-only">{{label}}</legend>
|
||||
{{/label}}
|
||||
<div class="d-flex flex-wrap align-items-center">
|
||||
{{#element.elements}}
|
||||
{{{separator}}}
|
||||
{{{html}}}
|
||||
{{/element.elements}}
|
||||
<div class="d-flex flex-wrap align-items-center">
|
||||
{{#element.elements}}
|
||||
{{{separator}}}
|
||||
{{{html}}}
|
||||
{{/element.elements}}
|
||||
</div>
|
||||
</fieldset>
|
||||
{{/label}}
|
||||
{{^label}}
|
||||
<div class="w-100 m-0 p-0 border-0">
|
||||
<div class="d-flex flex-wrap align-items-center">
|
||||
{{#element.elements}}
|
||||
{{{separator}}}
|
||||
{{{html}}}
|
||||
{{/element.elements}}
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
{{/label}}
|
||||
{{/element}}
|
||||
{{/ core_form/element-template }}
|
||||
{{#js}}
|
||||
|
@ -5,6 +5,7 @@ information provided here is intended especially for theme designer.
|
||||
* Theme selection is now performed using cards and modals.
|
||||
* The 'choosereadme' string for each theme is expected to be plain text. HTML content will not render when displayed in the modal.
|
||||
* Theme selector page has been moved to admin/themeselector.php (previously theme/index.php)
|
||||
* Moodleforms no longer use tag 'fieldset' for groups without labels (legends). Avoid targeting tag 'fieldset' in the theme CSS.
|
||||
|
||||
=== 4.3 ===
|
||||
* The core_renderer::htmllize_file_tree method has been deprecated. This was missed before Moodle 2.0.
|
||||
|
Loading…
x
Reference in New Issue
Block a user