Conditional class 'select' for trigger#81
Conditional class 'select' for trigger#81dahliacreative wants to merge 5 commits intopaulstraw:masterfrom dahliacreative:master
Conversation
|
@dahliacreative, 23c5806 actually has invalid Coffee on line 151 (no |
|
@paulstraw Done :) |
|
The CoffeeScript looks right, but I'm not totally sure what's going on with the JS. How did you recompile that? |
|
I re-compiled it using an online tool. Can you suggest something I can use to compile and I'll give it a go. |
|
I will sort this PR out as well when I get some free time, I might just have to fork it though and add my own functions as I just can;t get my head around coffee script. |
I've added in a conditional which removes the 'selected' class from the trigger if the option selected has a blank value.
This is so you can have a blank option and style the trigger differently if it is selected.
Example here: http://codepen.io/dahliacreative/pen/YyjyOP
When you click an option text goes dark, then if you select 'please select' text goes light again.