MDL-79059 mod_data: Enclose preset options within a fieldset

Enclosing the radio buttons in a fieldset to provide additional context
to the purpose of the fields.
This commit is contained in:
Jun Pataleta 2023-08-21 21:44:19 +08:00
parent bd76d860c0
commit 9db9ff3028
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7

View File

@ -59,8 +59,10 @@
<input type="hidden" name="mode" value="usepreset">
<input type="hidden" name="action" value="select">
<table id="presets-list" class="generaltable fullwidth">
<thead>
<fieldset>
<legend class="sr-only">{{#str}}presets, mod_data{{/str}}</legend>
<table id="presets-list" class="generaltable fullwidth">
<thead>
<tr>
<th class="pl-4 border-top-0" scope="col" style="width: 3%">
<span class="sr-only">{{#str}}select{{/str}}</span>
@ -71,8 +73,8 @@
<span class="sr-only">{{#str}}actions{{/str}}</span>
</th>
</tr>
</thead>
<tbody>
</thead>
<tbody>
{{#presets}}
<tr>
<td class="p-4 border-right">
@ -91,8 +93,9 @@
</td>
</tr>
{{/presets}}
</tbody>
</table>
</tbody>
</table>
</fieldset>
{{< core/sticky_footer }}
{{$ stickycontent }}