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

【SF】【A11y】[SplitButton]: [Missing aria-label for arrow button in splitButton]

Open tandan0813 opened this issue 2 years ago • 3 comments

Describe the bug

When used SplitButton, there will have an A11y issue shows missing accessbile text in arrow icon button. image

Isolated Example

https://stackblitz.com/edit/github-nvtvkb?file=src%2FApp.tsx

Reproduction steps

Refer isolated example.

Expected Behaviour

Add aria-label "more" for arrow button in splitButton

Screenshots or Videos

No response

UI5 Web Components for React Version

1.29.2

UI5 Web Components Version

1.24.4

Browser

Chrome

Operating System

No response

Additional Context

No response

Relevant log output

No response

Organization

No response

Declaration

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

tandan0813 avatar Jun 25 '24 06:06 tandan0813

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 Jun 25 '24 06:06 Lukas742

Hello @SAP/ui5-webcomponents-topic-b,

The issue is about missing aria lable for the menu button of the ui5-split-button. In the screenreader spec I found the following: "

  • Add Add aria-haspopup=”menu” and aria-controls=”[IDREF_ASSOCIATED_MENU_OR_POPOVER]” to button that opens menu
  • aria-labelledby for Label und tooltip " Also, the similar sap.m.Menu control in openui5 has an aria-label="Open Menu". Can you check further on your side. Thanks

kineticjs avatar Jun 25 '24 10:06 kineticjs

Hello @tandan0813 and @SAP/ui5-webcomponents-topic-b,

The accessibility specification described how a menu button should behave. The ui5-split-button is generally used as a menu button, but it could also be used for other purposes.

We'll need to provide an API like the following in order to provide flexibility: https://sap.github.io/ui5-webcomponents/docs/advanced/accessibility/#accessibilityattributes

Best regards, Boyan

unazko avatar Jul 04 '24 14:07 unazko