Button: can't set ACC attributes for menu
Closed this issue · 1 comments
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
...
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
- I’m not disclosing any internal or sensitive information.
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.