[SF][MultiInput][A11y]:ARIA listbox missing required child roles group or option
Bug Description
The ui5-tokenizer component renders a
<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
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
- [x] I’m not disclosing any internal or sensitive information.
Hello @tandan0813 ,
The Tokenizer has slotted ui5-token components. Their root/wrapper element has role="option" as shown on the screenshot.
I can't reproduce the mentioned Axe error when the MultiInput is empty on this link: https://ui5.github.io/webcomponents/components/MultiInput/ (2.23.1)
Could you please re-check your scenario and give us isolated sample if it's still reproducible ?
Regards, Plamen Ivanov
Hello, everyone! The issue has been inactive for 14 days. If there are still questions or comments, please feel free to continue the discussion. Inactive issues will be closed after 7 day!
Hello, everyone! The issue has been inactive for 21 days, so I am closing the issue.