Skip to content
New issue

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

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

Already on GitHub? # to your account

False positive on a11y_label_has_associated_control when spreading object #15067

Closed
TGlide opened this issue Jan 20, 2025 · 2 comments · Fixed by #15150
Closed

False positive on a11y_label_has_associated_control when spreading object #15067

TGlide opened this issue Jan 20, 2025 · 2 comments · Fixed by #15150
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

@TGlide
Copy link
Member Author

TGlide commented Jan 31, 2025

Thank you!

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

Successfully merging a pull request may close this issue.

3 participants