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.47k stars 254 forks source link

[Component Enhancement]: ui5-color-palette: keyboard interactions are not as per specification #8744

Open unazko opened 2 months ago

unazko commented 2 months ago

Enhancement description

Hello colleagues,

The default, more colors buttons and the color palette items are all swatches according to the keyboard handling specification. Thus we should be able to navigate between all of them by using the arrow keys.

Those incorrect keyboard interactions are only for the color palette in a popover scenario.

https://github.com/SAP/ui5-webcomponents/assets/15860295/7c5b95b7-f2df-4aea-9fed-26af36ac3f85

We are unable to navigate through all of the color palette items by pressing the arrow keys as you see in the video.

Additionally the HOME/END keyboard interactions aren't implemented:

  • Moves focus to the first item of the current row. If the focus is already on the first item of the current row, move the focus onto the very first swatch of the popup, typically the „Default Color“ item.
  • Moves focus to the last item of the current row. If the focus is already on the last item, and the key is pressed again, move focus onto the last swatch item in the popup, typically the „More Colors“ item.
  • If the focus is on the „Default Color“ item and the user pressed HOME it has no effect. If the user presses END the focus is moved to the „More Colors“.
  • If the focus is on the „More Colors“ item and the user presses END it has no effect, focus stays on the item. If the user presses HOME the focus is moved to the „Default Color“ item.

Best regards, Boyan

Proposed Solution

We have to implement the already specified keyboard interactions. New API's aren't required to achieve the missing behaviors. Thus this is more of an enhancement than a feature.

Proposed Alternatives

No response

Organization

No response

Additional Context

No response

Priority

Medium

Privacy Policy

DMihaylova commented 2 months ago

Hi @unazko,

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

Thanks & Regards, Diana