mirror of https://github.com/sveltejs/svelte
fix: prevent `a11y_label_has_associated_control` false positive for component in `<label>` (#12119)
* fix: prevent `a11y_label_has_associated_control` false positive for component in `<label>` * fix render tags as well * Update .changeset/swift-rats-sing.md --------- Co-authored-by: Rich Harris <rich.harris@vercel.com> Co-authored-by: Rich Harris <hello@rich-harris.dev>pull/12132/head
parent
965c12f633
commit
5b60a0e6ba
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"svelte": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: prevent `a11y_label_has_associated_control` false positive for component or render tag in `<label>`
|
@ -1,3 +1,11 @@
|
|||||||
|
<script>
|
||||||
|
import Component from './component.svelte'
|
||||||
|
</script>
|
||||||
|
|
||||||
<label>
|
<label>
|
||||||
<slot />
|
<slot />
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
<label>
|
||||||
|
<Component />
|
||||||
|
</label>
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
<script>
|
||||||
|
import Component from './component.svelte'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<label>
|
||||||
|
{@render x()}
|
||||||
|
</label>
|
Loading…
Reference in new issue