Could the library updated to use 2 CSS classes instead of one: one to say it's a checkbox with material design and the other to give it's color?
For example (where u-colorTeal only contains color-ing stuff):
<div class="icheck-material u-colorTeal">
<input type="checkbox" id="someCheckboxId" />
<label for="someCheckboxId">Click to check</label>
</div>
I see some advantages:
- It's clearer (IMHO, which is just an opinion)
- It can work with CSS frameworks.
- One can change the color by simply swapping a class.
What do you think?
Could the library updated to use 2 CSS classes instead of one: one to say it's a checkbox with material design and the other to give it's color?
For example (where
u-colorTealonly contains color-ing stuff):I see some advantages:
What do you think?