fix: add <select> aria-label, remove unnecessary aria-labelledby (#1242)
This commit is contained in:
parent
12179505e1
commit
3a7d6d3552
|
@ -1,5 +1,5 @@
|
|||
<div class="select-wrapper {className || ''}">
|
||||
<select on:change>
|
||||
<select on:change aria-label={label}>
|
||||
{#each options as option (option.value)}
|
||||
<option value="{option.value}" selected="{option.value === defaultValue ? 'selected' : ''}">
|
||||
{option.label}
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
maxlength="25"
|
||||
on:change="onChange(i)"
|
||||
placeholder="Choice {i + 1}"
|
||||
aria-labelledby="poll-option-label-{realm}-{i}"
|
||||
|
||||
>
|
||||
<IconButton
|
||||
|
@ -28,6 +27,7 @@
|
|||
options={pollExpiryOptions}
|
||||
defaultValue={pollExpiryDefaultValue}
|
||||
on:change="onExpiryChange(event)"
|
||||
label="Poll duration"
|
||||
/>
|
||||
</div>
|
||||
<IconButton
|
||||
|
|
Loading…
Reference in a new issue