ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

SegmentedButton: Accessibility issue ARIA input fields must have an accessible name

Open achuth2912 opened this issue 1 year ago • 1 comments

Describe the bug

When we run a axe dev tools for SegmentedButton component we are having a accessibility issue reported saying the component must have accessible name for the aria input fileds.

Isolated Example

https://sap.github.io/ui5-webcomponents-react/?path=/docs/inputs-segmentedbutton--docs

Reproduction steps

...

Expected Behaviour

We need to ensures every ARIA input field has an accessible name

Screenshots or Videos

Screenshot 2024-05-20 at 10 58 26 AM

UI5 Web Components for React Version

1.28.1

UI5 Web Components Version

1.24.0

Browser

Chrome

Operating System

Mac OS

Additional Context

No response

Relevant log output

No response

Organization

No response

Declaration

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

achuth2912 avatar May 20 '24 08:05 achuth2912

Thanks for reporting! I'll forward this issue to our UI5 Web Components Colleagues as the affected component is developed in their repository.

Lukas742 avatar May 21 '24 06:05 Lukas742

Hello @SAP/ui5-webcomponents-topic-b, Could you please look into this issue?

Regards, Todor

Todor-ads avatar May 22 '24 11:05 Todor-ads

Hello @achuth2912,

The described issue in the ui5-segmented-button component is actually a sample issue. By UX guidelines the application developers have to provide an external label or an accessibleName to the ui5-segmented-button element. Additionally in case the ui5-segmented-button-item is icon-only then a tooltip is also required. Please use the related PR: https://github.com/SAP/ui5-webcomponents/pull/9809 as a reference on how those API could be used by the application developers, in order not to have the described AXE tool issues.

Best regards, Boyan

unazko avatar Sep 04 '24 10:09 unazko