mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
fix(file-uploader): adjust markup to avoid accessibility errors
Ref: 0dfde60e3
This commit is contained in:
parent
ff4b05885d
commit
4ae1cab608
1 changed files with 19 additions and 19 deletions
|
@ -92,25 +92,25 @@
|
|||
<slot name="labelText">
|
||||
{labelText}
|
||||
</slot>
|
||||
<input
|
||||
bind:this="{ref}"
|
||||
type="file"
|
||||
tabindex="-1"
|
||||
id="{id}"
|
||||
disabled="{disabled}"
|
||||
accept="{accept}"
|
||||
name="{name}"
|
||||
multiple="{multiple}"
|
||||
class:bx--file-input="{true}"
|
||||
on:change
|
||||
on:change="{({ target }) => {
|
||||
dispatch('add', validateFiles(target.files));
|
||||
}}"
|
||||
on:click
|
||||
on:click="{({ target }) => {
|
||||
target.value = null;
|
||||
}}"
|
||||
/>
|
||||
</div>
|
||||
<input
|
||||
bind:this="{ref}"
|
||||
type="file"
|
||||
tabindex="-1"
|
||||
id="{id}"
|
||||
disabled="{disabled}"
|
||||
accept="{accept}"
|
||||
name="{name}"
|
||||
multiple="{multiple}"
|
||||
class:bx--file-input="{true}"
|
||||
on:change
|
||||
on:change="{({ target }) => {
|
||||
dispatch('add', validateFiles(target.files));
|
||||
}}"
|
||||
on:click
|
||||
on:click="{({ target }) => {
|
||||
target.value = null;
|
||||
}}"
|
||||
/>
|
||||
</label>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue