Using Moodle 3.0.3+
I'm trying to update and refine the look of the MooTyper plugin and add some settings starting with adding a color background for the onscreen keyboard layout so that users can match the colors of their theme. In the style.css for the plugin, just typing in a color for the span works, but I want to change to a setting so the color can be changed without having to manually change any code.
I'm trying to use a color picker, which I have working on my settings page, but no matter what I've tried adding after $previewconfig = array('selector'=>, the color fails to get passed and when I use Firefox Inspect Element, the line for my background-color is always marked out with an explanation of 'Invalid property value' .
So, a couple of questions...is it possible to change the background color of a span this way? How do you figure out what needs to get put in as the selector for the style?