fix: add <select> aria-label, remove unnecessary aria-labelledby (#1242)

This commit is contained in:
Nolan Lawson 2019-05-27 12:31:59 -07:00 committed by GitHub
parent 12179505e1
commit 3a7d6d3552
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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}

View File

@ -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