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

Accessibility features for Menu Items

Open maddel opened this issue 10 months ago • 2 comments

Feature Request Description

Within Work Zone we will use the Menu Web Component (for React) to show a context menu.

We have Menu Items that show a shortcut for some actions. To announce the shortcut we need the aria-shortcuts attribute on the focussed menu item (shadow dom) LI element. https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-keyshortcuts

Additionally some Menu Items will need more specific role as they act as a checkbox or radiobutton (not in screenshot) https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/menuitemcheckbox_role https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/menuitemradio_role

image

Proposed Solution

Add additional attibute to maintain the aria-shortcut on Menu Item Add additional attribute role (defaults to menuitem as today) to also maintain the menuitemcheckbox and menuitemradio values.

Proposed Alternatives

As modification of shadow dom elements is not possible and the focus is not set on the menuitem (tag) itselft there is no know alternative to achieve the ACC behavior that is expected.

Organization

SAP

Additional Context

No response

Priority

None

Privacy Policy

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

maddel avatar Apr 10 '24 08:04 maddel

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

Please have a look at this feature request.

Best regards, Petya

petyabegovska avatar Apr 10 '24 09:04 petyabegovska

Hi @maddel,

The request is now internally logged as BGSOFUIBALKAN-8194, and we'll promptly notify you once it's been addressed.

Thanks & Regards, Diana

DMihaylova avatar Apr 26 '24 12:04 DMihaylova

Hi @maddel,

Your requirements have been addressed in https://github.com/SAP/ui5-webcomponents/pull/9333

Regards, Diana

DMihaylova avatar Jul 09 '24 11:07 DMihaylova