primereact icon indicating copy to clipboard operation
primereact copied to clipboard

ListBox: Role must have accessible name (ARIA issue)

Open KubaGorka opened this issue 4 months ago • 0 comments

Describe the bug

The ListBox component fails accessibility requirements. The element with role="listbox" does not have an accessible name.

This can be observed in the official documentation: https://primereact.org/listbox/

Example node: <ul class="p-listbox-list" role="listbox" aria-multiselectable="false" tabindex="-1" data-pc-section="list">

Reproducer

No response

System Information

primereact: 10.9.7

Steps to reproduce the behavior

Go to https://primereact.org/listbox/

Inspect the main

    element of the ListBox

    Notice that role="listbox" has no accessible name

    Expected behavior

    The role="listbox" element should have an accessible name (e.g., via aria-label or aria-labelledby).

KubaGorka avatar Sep 12 '25 13:09 KubaGorka