I have sort of a strange situation. I'm trying to style a disabled input button because I have an annoying hover turning the text to white. This makes it confusing to the user because its acting like a normal button.
I have tried a few things, mainly css and a few jQuery things. I would like to keep this in css if at all posable.
This is my html, sorry it is in a larvel form helper.
{{ Form::submit('Change', array_merge($design_project->is_locked ? ['disabled' => 'disabled'] : [], ['class' => 'btn btn-blue span3'])) }}
and this is what the browser generates
<input disabled="disabled" class="btn btn-blue span3" type="submit" value="Change">
and I was working on something like this
.btn:hover input[disabled], .btn:active input[disabled], .btn:focus input[disabled]{
color:green
}
Any help would be wonderful!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…