The problem is if I give the type as string the user will not be able to select a color from the color picker and if I give the type as color and templateValue to achieve this, the user will be able to select a color from the picker but not the string value (e.g 2px 2px) as that will remain hard-coded. How can I achieve this?
How to add a color separately to text shadow/Box Shadow in apostrophe CMS pallete
21 Views Asked by ABGR At
1
I got this answer on discord community and the following works.
This can be achieved by giving two controls.
:root.valueTemplatein the second control and use the above variableSimilarly, it can be done for
box-shadowor any other similar html inputs as well.