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

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

Open unazko opened this issue 10 months ago • 1 comments

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

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

unazko avatar Apr 12 '24 08:04 unazko

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

DMihaylova avatar Apr 26 '24 12:04 DMihaylova