Alessandro_Russo
Alessandro_Russo

Reputation: 2231

How in SASS i can select an input type checkbox, checked and disabled?

How i can select and style an <input type=checkbox disabled checked> in SASS?

I tried this but don't put any style:

  input {
    &:checked &:disabled{
      background-color:red;
    }
  }

Upvotes: 1

Views: 3832

Answers (1)

Karan Kiri
Karan Kiri

Reputation: 316

Here is the code you can try.

input {
    &:checked:disabled{
      background-color:red;
    }
}

However the styles won't work for checkbox. As checkbox can not be styled natively yet. See for reference css - Why Cannot Change Checkbox Color Whatever I Do?

Upvotes: 4

Related Questions