Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Add shared styles #328

Merged
merged 2 commits into from
Aug 27, 2015
Merged

Add shared styles #328

merged 2 commits into from
Aug 27, 2015

Conversation

chuckh
Copy link
Contributor

@chuckh chuckh commented Aug 24, 2015

Add the new Polymer 1.1.0 share styles approach. Addresses #267.

@chuckh chuckh force-pushed the add-shared-styles branch from 5936afe to 1d99963 Compare August 24, 2015 18:50
@@ -8,22 +8,14 @@
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->

<link rel="import" href="../../styles/shared-styles.html">
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this line needed as it's already being imported in the elements.html?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. No it is not needed. I will remove.

@addyosmani addyosmani self-assigned this Aug 25, 2015
@addyosmani
Copy link
Member

Thanks for throwing this together, @chuckh. I've been reviewing Polymer/polymer#1876 Polymer/polymer#2229 (comment) & Polymer/polymer#2198 to catch up on the new approach.

Your changes LGTM here, however testing locally with 1.1.1 I'm seeing some differences between Chrome and Safari (Mac):

I've verified that master otherwise appears to be fine:

Could you do another pass on testing the change out to see what might be causing the discrepancy?

@chuckh
Copy link
Contributor Author

chuckh commented Aug 25, 2015

@addyosmani did some more testing this morning. It worked for my on Chrome and Safari, but got the same results as you did but with Firefox instead. I was using 1.1.1, but then I decide to try doing a bower update and that fixed it. Try doing bower update then try testing again.

Results after bower update:

Safari (8.0.8 mac):
image

Firefox (40.0 mac):
image

Chrome (44.0.2403 mac)
image

Add the new Polymer 1.1.0 share styles approach.

Remove commented css

Remove import from my-greeting.html

This import is not need because it is in elements.html.

Remove an accidentally added word
@chuckh chuckh force-pushed the add-shared-styles branch 2 times, most recently from 55c7210 to dc64fa5 Compare August 25, 2015 23:24
@chuckh chuckh force-pushed the add-shared-styles branch from dc64fa5 to 0b7d564 Compare August 25, 2015 23:28
@addyosmani
Copy link
Member

LGTM

addyosmani added a commit that referenced this pull request Aug 27, 2015
@addyosmani addyosmani merged commit d8d0cd6 into master Aug 27, 2015
@addyosmani addyosmani deleted the add-shared-styles branch August 27, 2015 17:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants