Skip to content

UFormField label is not associated to a child UListbox #6756

Description

@ttcchhmm

Environment

Operating system Linux 7.0.0-28-generic (Ubuntu 24.04 LTS)
CPU Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz (12 cores)
Node.js version v22.23.1
nuxt/cli version 3.37.0
Package manager npm@10.9.8
Nuxt version 4.5.0
Nitro version 2.13.4
Builder vite@8.1.5
Config compatibilityDate, css, devtools, modules
Modules @nuxt/ui@4.10.0

Is this bug related to Nuxt or Vue?

Nuxt

Package

v4.x

Version

v4.10.0

Reproduction

Playground link

Description

When using a UListbox inside a UFormField, the label generated by the UFormField is not associated to the UListbox. This creates a UListbox without a label for users relying on accessibility tools such as screen readers. I'm willing to try to make a PR to fix this issue if needed.

Additional context

Firefox shows an accessibility violation:

Image

And the missing label is also visible on Chromium:

Image

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageAwaiting initial review and prioritization

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions