1

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;
    }
  }
Alessandro_Russo
  • 1,799
  • 21
  • 34

1 Answers1

4

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?

Karan Kiri
  • 316
  • 2
  • 12