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 || ''}">
|
<div class="select-wrapper {className || ''}">
|
||||||
<select on:change>
|
<select on:change aria-label={label}>
|
||||||
{#each options as option (option.value)}
|
{#each options as option (option.value)}
|
||||||
<option value="{option.value}" selected="{option.value === defaultValue ? 'selected' : ''}">
|
<option value="{option.value}" selected="{option.value === defaultValue ? 'selected' : ''}">
|
||||||
{option.label}
|
{option.label}
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
maxlength="25"
|
maxlength="25"
|
||||||
on:change="onChange(i)"
|
on:change="onChange(i)"
|
||||||
placeholder="Choice {i + 1}"
|
placeholder="Choice {i + 1}"
|
||||||
aria-labelledby="poll-option-label-{realm}-{i}"
|
|
||||||
|
|
||||||
>
|
>
|
||||||
<IconButton
|
<IconButton
|
||||||
|
@ -28,6 +27,7 @@
|
||||||
options={pollExpiryOptions}
|
options={pollExpiryOptions}
|
||||||
defaultValue={pollExpiryDefaultValue}
|
defaultValue={pollExpiryDefaultValue}
|
||||||
on:change="onExpiryChange(event)"
|
on:change="onExpiryChange(event)"
|
||||||
|
label="Poll duration"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<IconButton
|
<IconButton
|
||||||
|
|
Loading…
Reference in New Issue