Skip to content

A11y: A form label must be associated with a control. (When label actually has control element) #5528

Closed
@ZerdoX-x

Description

@ZerdoX-x

Case when labelable element is not direct child of label element triggers current warning

https://svelte.dev/repl/418bcf45f55741e49361839687cf11fa?version=3.29.0

Expected behavior: compiler recursively checks if label has labelable element

Additional context:
I started to write recursive function to get this warning working properly but then I found #5323 PR that covers my issue

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