Added aria label to form helper

This commit is contained in:
snipe 2020-04-01 01:26:32 -07:00
parent 0cf70c9e16
commit 59c5a1ea87

View file

@ -514,7 +514,7 @@ Form::macro('customfield_elements', function ($name = "customfield_elements", $s
// 'radio' => 'Radio Buttons',
);
$select = '<select name="'.$name.'" class="'.$class.'" style="width: 100%">';
$select = '<select name="'.$name.'" class="'.$class.'" style="width: 100%" aria-label="'.$name.'">';
foreach ($formats as $format => $label) {
$select .= '<option value="'.$format.'"'.($selected == $format ? ' selected="selected"' : '').'>'.$label.'</option> '."\n";
}