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

Can't set the background color of paper-progress from javascript #787

Closed
yogevyuval opened this issue Oct 8, 2014 · 0 comments
Closed
Assignees

Comments

@yogevyuval
Copy link

I have an element that contains a element. The is updated every second with ajax and get's new details. It get's a number between 0-100 that is binded to the paper-progress to show the current value. I wanted to have the progress bar to change color according to the progress value. I tried things like:

<paper-progress id="prog">....
this.$.prog.querySelector("::shadow #activeProgress").style.backgroundColor = "some color here..."

and

  this.$.prog.shadowRootquerySelector("#activeProgress").style.backgroundColor = "some color here..."

And nothing worked. It's like I didn't manage to really set the color or something was overriding my color choosing.

Is that some problem or did I do something wrong?

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

2 participants