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

[Feature Request]: ColorPaletteItem selected feature

Open nathanbienfait opened this issue 1 year ago • 1 comments

Feature Request Description

When using the ColorPalettePopover, it would be usefull to have the possibility to set a selected ColorPaletteItem. So that when opening the ColorPalettePopover, the selected ColorPaletteItem is focused.

Because when opening the ColorPalettePopover, it is always the first colorPaletteItem that gets the focus. As the ColorPalettePopover is used as a color selector in my use case. It would be nice to be able to have the possibility to specify which colorPaletteItem gets focused when opening the ColorPalettePopover.

Proposed Solution

Add a 'selected' property on ColorPaletteItem component, similarly to what is available on the Option component of the Select.

Proposed Alternatives

No response

Organization

SAP

Additional Context

No response

Priority

Medium

Privacy Policy

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

nathanbienfait avatar May 23 '23 08:05 nathanbienfait

Hi @DMihaylova,

Please have a look at this feature request. We have similar request for UI5: FIORITECHP1-26816.

Best regards, Petya

petyabegovska avatar May 23 '23 09:05 petyabegovska

Hi @nathanbienfait,

We're happy to announce that ui5-color-palette-item has now 'selected' property: https://github.com/SAP/ui5-webcomponents/pull/8554 In case of further questions or assistance, feel free to reach out.

Thanks & Regards, Diana

DMihaylova avatar Jun 06 '24 09:06 DMihaylova