Closed AdamBLevine closed 8 years ago
Is there a dummy magic word you can give me to look at the CSS?
np, found it:
<p class="error">Correct! Word submitted successfully</p>
Need to change the class of the
$output['message'] = 'Correct! Word submitted successfully';
line in ./slick/App/Blog/MagicWords/Controller.php
Sorry, can't work out where $output goes! I'm guessing the 'message' field is handled implicitly somewhere, and gets the error class by default. Not sure a) where it's handled, and b) how you'd flag it so as to not get the error class.
@dbolser the issue was that there was no class being set at all, just always assumed to use the "error" class. i.e me being lazy apparantly :) fixed here c4ffe7ad6584bf409ff36084ccc6d4578eec1799
Dang, that's clever. I'd never have got there, but it makes perfect sense!
This has been on my 'I could fix that' list for ages, so when I saw the ticket raised, I thought I'd give it a go :-)
Cheers, Dan.
Red is the universal color of "shit broke" while green is the universal color of "you're good to go!"
Right now whether successful or not, the confirmation text shows up in red - Please make the successful text show up in green.