mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-06 17:51:34 +02:00
The accessibility attribute `role="listbox"` requires its immediate children to be set as `role="option"`, currently they don't have this option and accessibility tests are failing.
9 lines
341 B
Scheme
9 lines
341 B
Scheme
<ul $AttributesHTML>
|
|
<% loop $Options %>
|
|
<li class="$Class" role="$Role">
|
|
<input id="$ID" class="radio" name="$Name" type="radio" value="$Value"<% if $isChecked %> checked<% end_if %><% if $isDisabled %> disabled<% end_if %> <% if $Up.Required %>required<% end_if %> />
|
|
<label for="$ID">$Title</label>
|
|
</li>
|
|
<% end_loop %>
|
|
</ul>
|