hamed-ehtesham / pretty-checkbox-vue

Quickly integrate pretty checkbox components with Vue.js
MIT License
261 stars 31 forks source link

How to set checkbox border color? #16

Closed yogur closed 5 years ago

yogur commented 5 years ago

How can I set border-color or outline of a checkbox?

seaskyways commented 5 years ago

This can be done by setting the SCSS variable ahead of importing the SCSS of pretty-checkbox like so.

$pretty--color-default: #123456;
@import '~pretty-checkbox/src/pretty-checkbox.scss';
yogur commented 5 years ago

Ah I see. Can I apply a custom outline color only to a specific checkbox, instead of setting outline color globally?

hamed-ehtesham commented 5 years ago

Hi Abed,

this Codepen shows you how