Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive on a11y_label_has_associated_control when spreading object #15067

Open
TGlide opened this issue Jan 20, 2025 · 1 comment
Open
Labels

Comments

@TGlide
Copy link
Member

TGlide commented Jan 20, 2025

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

@Rich-Harris
Copy link
Member

Yeah we should disable any missing attribute warnings when there's a spread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants