SAP / ui5-webcomponents-react

A wrapper implementation for React of the UI5 Web Components that are compliant with the SAP Fiori User Experience
https://sap.github.io/ui5-webcomponents-react/
Apache License 2.0
426 stars 94 forks source link

Button: can't set ACC attributes for menu #5918

Closed surjadeep closed 3 weeks ago

surjadeep commented 3 weeks ago

Describe the bug

The type of menu component is read as button.

Isolated Example

https://stackblitz.com/edit/vitejs-vite-vykgzp?file=src%2FApp.tsx

Reproduction steps

1. 2. 3. ...

Expected Behaviour

Type of the input should be read properly.

Screenshots or Videos

No response

UI5 Web Components for React Version

1.28.0

UI5 Web Components Version

1.24.0

Browser

Chrome

Operating System

No response

Additional Context

No response

Relevant log output

No response

Organization

CBC

Declaration

Lukas742 commented 3 weeks ago

Hi @surjadeep

this is the exact same question I already answered on Slack. Is there something unclear, or do you need further assistance? In general, please keep it in one channel, because creating the same issue in multiple instances makes support harder than it needs to be.

you can use the accessibilityAttributes to achieve this. (see docs) https://stackblitz.com/edit/vitejs-vite-xsy2rf?file=src%2FApp.tsx

Also, I've adjusted the title because this issue is not about the menu, but about the a11y attributes of the button.

I'm closing this issue now, if there are still questions or feedback, please add them here as we also monitor closed issues.