paper-stepper icon indicating copy to clipboard operation
paper-stepper copied to clipboard

Upgrading to Hybrid mode

Open myfrom opened this issue 7 years ago • 12 comments

Resolves #67

I've gone through some steps of upgrading elements to Hybrid mode so they work in Polymer 1 (>1.9) and 2.0

~~The element is now pretty functional but some styles don't get applied and I'm not sure why. Please help. 😧~~

It'd also be needed to move animations to standard Web Animations API instead of neon-animations as they got deprecated.

I also would suggest to do some more testing on it before publishing, I'm not good at testing 😖.

myfrom avatar Jun 04 '17 16:06 myfrom

Hy, for your style problems you also have change var(--var1, --var-2) to var(--var1, var(--var2)), hope it helps!

Zecat avatar Jun 18 '17 22:06 Zecat

Sorry for late response. Thanks for advice! But seems like you have already implemented hybrid mode so I think you can now close this PR.

myfrom avatar Jul 14 '17 17:07 myfrom

@myfrom With the changes @thetaPC recommended and @Zecat said for the styles it solves the issue. Would heavily recommend trying to get your branch pushed for the hybrid mode as it is better then the current one imo. The style changes need to be done in the step-label-shared-styles.html.

WillHutt avatar Jul 18 '17 19:07 WillHutt

Thanks for suggestions, everyone! I'm gonna work on it tomorrow.

myfrom avatar Jul 18 '17 19:07 myfrom

Also add this "iron-menu-behavior": "PolymerElements/iron-menu-behavior#^2.0.0" in bower.json It also complains without it.

Very excited to getting this version of the hybrid completed. The current one is still a prototype and lacks a few components.

thetaPC avatar Jul 18 '17 20:07 thetaPC

Sorry for breaking my promise but I won't be able to push it today 😞 I'm going on a trip tomorrow morning and will try to push it as soon as I get stable internet tomorrow. Sorry once again

myfrom avatar Jul 19 '17 15:07 myfrom

OK, so I merged all PRs to my code (Huge thanks for them!) but the vertical option doesn't seem to work I'm looking into it right now

myfrom avatar Jul 20 '17 19:07 myfrom

Awesome! I did notice when using the browser's device emulator (Chrome and Firefox), not all the default phones would work.

thetaPC avatar Jul 20 '17 20:07 thetaPC

Is this PR better than the current state of things?

rjcorwin avatar Aug 29 '17 19:08 rjcorwin

@rjsteinert I will say that myfrom's version is way better than the original. I ended up using it for my internship. They were really pleased with it and we were using Polymer 2.

thetaPC avatar Aug 30 '17 07:08 thetaPC

So a little update: I have checked a bit on my local machine and I found out that both mine and Zecat's hybrid version (Polymer-2 or hybrid-modular-prototype respectively) seems to work the same. However, there are huge code changes in Zecat's version (at least on diffs) as opposed to my approach with minimal changes. I think this could be safely merged to master now without breaking anything and having great compatibility with other PRs. Could you tell what do you think about it, @Zecat?

myfrom avatar Sep 03 '17 18:09 myfrom

It's been many years since then. Have we considered closing out this PR due to inactivity?

thetaPC avatar Jul 16 '21 16:07 thetaPC