mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-21 20:59:20 +00:00
fix(file-uploader): move input outside of label to fix a11y error
Ref: https://github.com/carbon-design-system/carbon/pull/10444
This commit is contained in:
parent
32ce6c61c4
commit
f627e1b6f3
1 changed files with 19 additions and 19 deletions
|
@ -93,6 +93,7 @@
|
||||||
{labelText}
|
{labelText}
|
||||||
</slot>
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
|
</label>
|
||||||
<input
|
<input
|
||||||
bind:this="{ref}"
|
bind:this="{ref}"
|
||||||
type="file"
|
type="file"
|
||||||
|
@ -112,5 +113,4 @@
|
||||||
target.value = null;
|
target.value = null;
|
||||||
}}"
|
}}"
|
||||||
/>
|
/>
|
||||||
</label>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue