enterprise-ng icon indicating copy to clipboard operation
enterprise-ng copied to clipboard

Expose current color selection in Personalize Directive

Open edgarinfor opened this issue 4 years ago • 1 comments

The SohoPersonalizeDirective currently exposes the currentTheme however, there is not access to obtaining the current color selected (neither the mode).

Describe the solution you'd like Please, provide a currentColor method to retrieve the relevant color object (similar to personalizationColors) for example: { "id": "azure", "name": "Azure", "backgroundColorClass": "azure07", "value": "#0066D4" }

Describe alternatives you've considered We couldn't find where this information is stored however, digging into the JQuery element, we found the current color value (not accessible from Angular) in: SohoPersonalizeDirective.personalize.settings.colors

We can retrieve a specific color value calling SohoPersonalizeDirective.personalize.personalizationColors().azure but, in this case, it's the "azure" part that is unknown as it can be "amber" or anything else.

Additional context We are integrating WFM specific UI elements with IDS Theming and, in some occasions we need to provide a default or current color value based on the current selection.

edgarinfor avatar Jun 30 '21 17:06 edgarinfor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution.

github-actions[bot] avatar May 20 '24 01:05 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jun 03 '24 01:06 github-actions[bot]