Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False State color #14

Open
aquintiliano opened this issue Apr 21, 2017 · 3 comments
Open

False State color #14

aquintiliano opened this issue Apr 21, 2017 · 3 comments

Comments

@aquintiliano
Copy link

First of all, congrats, it's a great and easy-to-use component.

You let we change the True state color, but I want to change the false state color as well

@misadjalovic
Copy link

Yeah I tried as well to change the false state bg-color but no luck even with the change of the bg-color in the component css for the span element.

@biskis
Copy link

biskis commented May 17, 2017

You can change the false (or off) color using switchOffColor param (no need to do anything in CSS)

For example, this will be green when on and red when off with white background.

<ui-switch color="#fff" switchColor="green" switchOffColor="red"></ui-switch>

@fabrizziocht
Copy link

but also we need to change defaultBgColor, please update this value with @input decorator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants