a11y-theme-builder icon indicating copy to clipboard operation
a11y-theme-builder copied to clipboard

[SDK] allow deleting the default color

Open omesh-omg opened this issue 7 months ago • 2 comments

Problem/Concern : cannot delete default color

Required in progress with the EPIC - 820 #820

  • colorPalette.removeColor(colorName) using this to delete the default color it creates error at runtime
  • default color : according SDK is the color which was added to the palette for the first time.

Uncaught runtime errors: × ERROR You can not remove the default color (Color Palette) at ColorPalette.removeColor (http://localhost:3000/static/js/bundle.js:90920:13) at handleMenuButtonDeleteColor (http://localhost:3000/static/js/bundle.js:5485:32) at onClick (http://localhost:3000/static/js/bundle.js:5693:40) at HTMLUnknownElement.callCallback (http://localhost:3000/static/js/bundle.js:172881:18) at Object.invokeGuardedCallbackDev (http://localhost:3000/static/js/bundle.js:172925:20) at invokeGuardedCallback (http://localhost:3000/static/js/bundle.js:172982:35) at invokeGuardedCallbackAndCatchFirstError (http://localhost:3000/static/js/bundle.js:172996:29) at executeDispatch (http://localhost:3000/static/js/bundle.js:177139:7) at processDispatchQueueItemsInOrder (http://localhost:3000/static/js/bundle.js:177165:11) at processDispatchQueue (http://localhost:3000/static/js/bundle.js:177176:9)

Proposed Solution

omesh-omg avatar Jul 26 '24 17:07 omesh-omg