Hi, I’m modifying the “Dawn” theme, because I want to achieve one specific thing, but I can’t find a way to achieve it: that the color of a button changes depending on what the text inside it says (you know, if says “red”, the button is red, if the text says “black”, the button is black) and when selected, the color does not change to black, but instead has a thick black border. Any idea how I can achieve it? Thank you in advance.
Can I ask you about your solution? Did you make the border change color by CSS and variable? If yes, maybe you should check that code again and make sure you choose “background-color” attribute of that button instead of “color”
@D1k4ns no, I didn’t do that bc I didn’t even know it was possible. I recently returned to web development after many years; when I abandoned this, javascript was just starting to become popular, there was no css or any of the resources nowadays. I am just returning, when I clicked on “edit code” I imagined that eventually I would find something to modify using only HTML, but seeing so many unknown things I felt like a caged animal so I swallowed my pride as an old school developer and I come for guidance realizing that nowadays HTML only serves to instantiate a workspace where other languages will do the old html job but much nicer and more flexible.
I’m going to have to spend many sleepless nights going through the shopify documentation and learning these new languages and their methodologies