Skip to content

Split in 2 CSS classes (with one dedicated to color)? #5

Description

@C-Duv

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions