{"action":"created","issue":{"url":"https://api.github.com/repos/abpetkov/switchery/issues/81","labels_url":"https://api.github.com/repos/abpetkov/switchery/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/abpetkov/switchery/issues/81/comments","events_url":"https://api.github.com/repos/abpetkov/switchery/issues/81/events","html_url":"https://github.com/abpetkov/switchery/issues/81","id":108854873,"number":81,"title":"Add `is-selected` class when switch is ON","user":{"login":"vfonic","id":67437,"avatar_url":"https://avatars.githubusercontent.com/u/67437?v=3","gravatar_id":"","url":"https://api.github.com/users/vfonic","html_url":"https://github.com/vfonic","followers_url":"https://api.github.com/users/vfonic/followers","following_url":"https://api.github.com/users/vfonic/following{/other_user}","gists_url":"https://api.github.com/users/vfonic/gists{/gist_id}","starred_url":"https://api.github.com/users/vfonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vfonic/subscriptions","organizations_url":"https://api.github.com/users/vfonic/orgs","repos_url":"https://api.github.com/users/vfonic/repos","events_url":"https://api.github.com/users/vfonic/events{/privacy}","received_events_url":"https://api.github.com/users/vfonic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-29T12:00:38Z","updated_at":"2015-11-05T04:29:16Z","closed_at":null,"body":"Hi,\r\n\r\nGreat work on switchery! Thanks!\r\n\r\nI'm using SASS for my CSS and along with it, I've got some branding colors set through SASS variables. I'd like to be able to set the switch class when it's ON so that I can customize that particular class in my SASS like this:\r\n\r\n```\r\n.switchery.is-selected {\r\n  background-color: $brand-main;\r\n}\r\n```\r\n\r\nIs this possible?\r\n\r\nCurrently, this is how I have it set:\r\n\r\n```\r\nnew Switchery(this, { color: '#7ee1c4' });\r\n```\r\n\r\nNotice how now I have the main color specified in two places: once for $brand-main in SASS and once as a 'magic value' in the middle of my javascript code.\r\n\r\nThanks!\r\nViktor"},"comment":{"url":"https://api.github.com/repos/abpetkov/switchery/issues/comments/153953308","html_url":"https://github.com/abpetkov/switchery/issues/81#issuecomment-153953308","issue_url":"https://api.github.com/repos/abpetkov/switchery/issues/81","id":153953308,"user":{"login":"JayAdra","id":2704964,"avatar_url":"https://avatars.githubusercontent.com/u/2704964?v=3","gravatar_id":"","url":"https://api.github.com/users/JayAdra","html_url":"https://github.com/JayAdra","followers_url":"https://api.github.com/users/JayAdra/followers","following_url":"https://api.github.com/users/JayAdra/following{/other_user}","gists_url":"https://api.github.com/users/JayAdra/gists{/gist_id}","starred_url":"https://api.github.com/users/JayAdra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JayAdra/subscriptions","organizations_url":"https://api.github.com/users/JayAdra/orgs","repos_url":"https://api.github.com/users/JayAdra/repos","events_url":"https://api.github.com/users/JayAdra/events{/privacy}","received_events_url":"https://api.github.com/users/JayAdra/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T04:29:16Z","updated_at":"2015-11-05T04:29:16Z","body":"+1 for this! Would be very useful for branding and for targeting using JS."}}