Skip to content

False positive on a11y_label_has_associated_control when spreading object #15067

Closed
@TGlide

Description

@TGlide

Describe the bug

When spreading an object with a for attribute on a label, Svelte puts a warning a11y_label_has_associated_control

Reproduction

https://svelte.dev/playground/5efcafb51a0043968060da3514f41a74?version=5.19.0

Logs

System Info

System:
    OS: Linux 6.6 cpe:/o:nixos:nixos:24.11 24.11 (Vicuna)
    CPU: (32) x64 AMD Ryzen 9 7950X3D 16-Core Processor
    Memory: 53.46 GB / 62.01 GB
    Container: Yes
    Shell: 3.7.1 - /run/current-system/sw/bin/fish
  Binaries:
    Node: 20.18.1 - /run/current-system/sw/bin/node
    npm: 10.8.2 - /run/current-system/sw/bin/npm
    pnpm: 9.15.3 - /run/current-system/sw/bin/pnpm

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions