I have a button. The button has a span tag inside of it for the text of the button. Sometimes the button may be disabled. When disabled, I'd like the button to be grey. Why doesn't this work? First the HTML, then the CSS
<button disabled>
<span class="dark-disabled">Start New Game</span>
</button>
button:disabled span{
background: #ccc;
}
But it will fire if I do a class selector instead:
button:disabled .dark-disabled{
background: #ccc;
}