Skip to content

[SF][MultiInput][A11y]:ARIA listbox missing required child roles group or option #13707

Description

@tandan0813

Bug Description

The ui5-tokenizer component renders a

with role="listbox" but contains no children with role="option" or role="group", violating the ARIA required children rule and causing accessibility violations.
<div class="ui5-tokenizer--list" role="listbox" aria-label="Tokenizer"></div>

A listbox role requires at least one child with role="option" or role="group" per the ARIA specification. When the tokenizer is empty, no such children are present, triggering the following axe-core violation:

▎ Certain ARIA roles must contain particular children — expecting ARIA children role to be added: group, option

Image

Affected Component

MultiInput

Expected Behaviour

When the tokenizer contains no tokens, the container element should either:

  • Not use role="listbox" (e.g., remove the role or use a different semantic element), or
  • Ensure at least a placeholder child with an appropriate role is present so that the ARIA required children rule is
    satisfied.

Isolated Example

No response

Steps to Reproduce

...

Log Output, Stack Trace or Screenshots

No response

Priority

None

UI5 Web Components Version

2.23.0

Browser

Chrome

Operating System

No response

Additional Context

No response

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions