SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.51k stars 263 forks source link

[SF][A11y][ui5-list] F2 doesn't focus to first focusable element #7736

Open Neeeko opened 11 months ago

Neeeko commented 11 months ago

Bug Description

When the focus is on the list item itself, pressing F2 should put the focus on the first focusable element within the row. It works well in SAPUI5 but it is not the case in ui5-webcomponents.

This feature works properly in SAPUI5: https://sapui5.hana.ondemand.com/#/entity/sap.m.CustomListItem/sample/sap.m.sample.CustomListItem

But not in this code sand box: https://codesandbox.io/s/v63xqt?file=/index.html

You may refer to this video from our a11y experts: https://github.com/SAP/ui5-webcomponents/assets/7316793/b7f8af19-dec9-4c3d-9cd3-5db9740832e9

Affected Component

ui5-list

Expected Behaviour

No response

Isolated Example

https://codesandbox.io/s/v63xqt?file=/index.html

Steps to Reproduce

  1. Go to https://codesandbox.io/s/v63xqt?file=/index.html
  2. Press F2
  3. Note that the focus doesn't go to the first interactive element inside the row

Log Output, Stack Trace or Screenshots

No response

Priority

Medium

UI5 Web Components Version

latest

Browser

Chrome, Edge, Firefox, Safari

Operating System

macOS

Additional Context

No response

Organization

SuccessFactors

Declaration

niyap commented 11 months ago

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

When you focus a sap.m.CustomListItem with contains focusable elements via F2 the focus is moved to the first focusable element within the list item. Here, you can try: https://sapui5.hana.ondemand.com/#/entity/sap.m.CustomListItem/sample/sap.m.sample.CustomListItem The same does not happen with the Web Components CustomListItem: https://sap.github.io/ui5-webcomponents/nightly/playground/main/pages/List/ via F2 nothing happens.

Could you please check whether it is expected to have such behaviour on F2?

Thank you in advance!

Kind Regards, Niya

plamenivanov91 commented 11 months ago

Hello @Neeeko ,

I've marked this issue as feature request and created internal BLI where further development should take place.

Regards, Plamen

dobrinyonkov commented 10 months ago

Internal reference: BGSOFUIPIRIN-6311