Not sure if this was an issue before 1.9.8 but I just encountered it when trying to change colour. When you use the raw option on the colour pallet, once saved you cannot change from raw to a normal HEX or RGB colour away from variables. See steps below to reproduce.
Have a colour global variable set in the variable manager like âtp-color-accentâ with colour â#893064â.
Create a fresh colour pallet and under any element that can use colour like for a background colour use the colour pallet interface to create a new pallet colour and set the option to raw and then use the variable created from before. Should look like âvar(âtp-color-accent)â.
Now use this colour for the background and save the page to see on frontend.
Going back to the builder refresh the builder and go back to the background colour settings of that element.
Now edit that colour pellet option that was just created and attempt to change the colour from raw to something else like black (#000000) then save. You will see on the backend it doesnât change but it does change on the frontend and it even replicates the variable to overwrite it.
@kostasntamas the point is once you have set raw input of a variable for colour pallet you canât change it back to a normal colour picker input. As the default uses Bricks own css variable when saving a hex colour while when set raw it seems to not drop that value. I know you can change any value in the variables manager.
However, I donât understand your report or missing something. When I follow your steps, I donât get the result you report. Perhaps you could explain the steps again in a screencast (with words, please)?
Basically, I would agree with Kostas, though: you have defined the color in the variable manager and should change it there accordingly. But as I said, somehow I donât quite understand what youâre getting at
Hi @timmse,
I will try to hopfully narrow it down better. Iâm got great at explaining things, sorry about that.
So when you create a swatch in the colour pallet and use any css variable using the raw option. If you then try to change that by editing this new swatch by clicking the remove button for the raw input then using the hex option then save, the backend and frontend do not work right with that swatch when applied.
When I exported the colour pallet json it seemed to have hex and raw input as values so on the frontend it uses the hex option and on the backend it uses the raw option, and it doesnât let you remove the raw input really as there is a placeholder.
I know in a normal workflow if you intend to use the variables manager you would then change the colour from there but when I was trying out the variables for the first time and just wanted to reset and try different colours for that swatch before finalising that is when I encountered this issue.