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

Upgrading to Hybrid mode #68

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Upgrading to Hybrid mode #68

wants to merge 8 commits into from

Conversation

myfrom
Copy link

@myfrom myfrom commented Jun 4, 2017

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 😖.

Zecat and others added 3 commits June 4, 2017 16:37
Updated dependencies for Hybrid mode

Changed content to slot and @apply(--mixin) to @apply --mixin

Updated bower.json

Upgrading to Hybrid mode

Upgrading to Hybrid mode
@myfrom myfrom changed the title [DON'T MERGE] Upgrading to Hybrid mode (#67) [DON'T MERGE][Help needed] Upgrading to Hybrid mode (#67) Jun 4, 2017
@myfrom myfrom changed the title [DON'T MERGE][Help needed] Upgrading to Hybrid mode (#67) [DON'T MERGE][Help needed] Upgrading to Hybrid mode Jun 4, 2017
@Zecat
Copy link
Owner

Zecat commented Jun 18, 2017

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

@myfrom
Copy link
Author

myfrom commented Jul 14, 2017

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.

@@ -13,6 +13,7 @@
<link rel="import" href="animations/fade-in-slide-from-left-animation.html">
<link rel="import" href="animations/fade-out-slide-left-animation.html">
<link rel="import" href="paper-step.html">
<link rel="import" href="../bower_components/neon-animation/web-animation.html">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace:
<link rel="import" href="../bower_components/neon-animation/web-animation.html">
with:
<link rel="import" href="../neon-animation/web-animations.html">
It complains that the path doesn't exist and it also lacks the s at the end of animations.

@WillHutt
Copy link

WillHutt commented Jul 18, 2017

@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.

@myfrom
Copy link
Author

myfrom commented Jul 18, 2017

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

@apply(--paper-font-common-base);
@apply(--layout-flex);
@apply --paper-font-common-base;
@apply --layout-flex;
}
#textWrapper {
color: var(--paper-step-disabled-label-text-color, --paper-grey-400);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#textWrapper {
color: var(--paper-step-disabled-label-text-color, var(--paper-grey-400));

@@ -50,8 +50,8 @@
border-radius: 50%;
color: var(--paper-step-badge-color, --dark-theme-text-color);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

border-radius: 50%;
color: var(--paper-step-badge-color, var(--dark-theme-text-color));

@thetaPC
Copy link

thetaPC commented Jul 18, 2017

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.

@myfrom
Copy link
Author

myfrom commented Jul 19, 2017

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

Maria Loza and others added 5 commits July 19, 2017 14:28
After bower install, the site couldn't find iron-menu-behavior. I had to install it seperately to get it working.
However, I'm still new to the bower.json. So I'm not sure if where I placed it is the best.
@myfrom
Copy link
Author

myfrom commented Jul 20, 2017

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

@thetaPC
Copy link

thetaPC commented Jul 20, 2017

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

@rjcorwin
Copy link

Is this PR better than the current state of things?

@thetaPC
Copy link

thetaPC commented Aug 30, 2017

@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.

@myfrom myfrom changed the title [DON'T MERGE][Help needed] Upgrading to Hybrid mode Upgrading to Hybrid mode Sep 3, 2017
@myfrom
Copy link
Author

myfrom commented Sep 3, 2017

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?

@thetaPC
Copy link

thetaPC commented Jul 16, 2021

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

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

Successfully merging this pull request may close these issues.

Polymer 2.0 compatibility
5 participants