-
Notifications
You must be signed in to change notification settings - Fork 266
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
Is there a way to change color of progress bar via options in js? #50
Comments
No, it's not possible. But you can add a css line with javascript, nanobar is already doing that so you can use the same css tag: const nanobar = new Nanobar()
const styleTag = document.getElementById('nanobarcss')
styleTag.innerHTML += '.nanobar .bar{background:#bdf;}' |
Can I ask you, why do you do it this way? Is it faster or what? |
I don't do it this way, I use css: .nanobar .bar.errorbar {
background: #e44;
} |
Of course, but if it would be in settings option it would be at one place. That's all. |
I had to use the following styling to style the nanobar progress bar correctly: .nanobar .bar { background-color: #0074d9; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, is it possible to change color of progress bar via
I dont want to have it in less file.
The text was updated successfully, but these errors were encountered: