Closed edwardsharp closed 7 years ago
I think for the background, I'd like to change it to a Custom property. Something like:
background: var(--paper-slide-background, rgba(0,0,0,0));
That way it's transparent as default but you can easily give it a colour if you want to.
Hi Link2Twenty
Was just about to upload a pull request to do exactly what you've suggested above.
background: var(--paper-slide-background, rgba(0,0,0,0));
Are you going to commit it, it works well!
Thanks
Joel
@JDenne I was waiting for the pull request to be updated, I'll do it manually now 👍
Nice one, thanks very much!
Will the update publish to webcomponents.org too?
Thanks again!
@JDenne it's there now https://beta.webcomponents.org/element/Link2Twenty/l2t-paper-slider You might need to do a hard refresh to see changes (CTRL + F5)
Got it, thank you!
hi there!
...cool element! i made two changes in the element itself because overriding them was proving to be a pain.
1.) removed the #FFCDD2 background style. i got something like this working once, but when i use the polymer starter kit this doesn't work. (i'm pretty new to polymer so am probably missing something)
2.) when i navigated away from a page/element that has a
<l2t-paper-slider>
element errors would get thrown from the_moveInd
function because thesetInterval
was still running but the slider had been torn down. i first tried to detach my element but that was no use (maybe if your element had adetached
event handler?). also, it would probably be good to actuallyclearInterval
instead of just checking!= undefined
...