I want to make the Recharge widget consistent with the look and feel of our e-commerce (eg. change the Background color). An apparently simple task is becoming really frustrating since CSS and JavaScript don’t seem to work. The Recharge documentation is quite outdated and does not apply anymore for this case. I think this customization issue is due to HTML data- attribute found in the widget HTML. Does anyone of you know how to manipulate correctly this case?
Thanks! Despite the adjustment on a copy of the theme I still cannot access some elements of the widget. By running this simple code on the console, after the page is loaded, I can see the background color changing, but when I place it in the theme.liquid file nothing happens. What am I doing wrong?
var element = document.querySelector('.rc-radio--active[data-v-ddaa0f43]');
element.style.backgroundColor = 'blue';