Skip to content

Commit

Permalink
Merge pull request #1526 from bc-williamkwon/deprecateGoogle
Browse files Browse the repository at this point in the history
STRF-5665 remove google plus
  • Loading branch information
mattolson authored Jun 28, 2019
2 parents 0d295df + bf702a1 commit c6e0958
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 22 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Update @babel/polyfill to 7.4.4 [#1521](https://github.com/bigcommerce/cornerstone/pull/1521)
- Add maxlength to text options [#1531](https://github.com/bigcommerce/cornerstone/pull/1531)
- Add return instructions in return-saved.html [#1525](https://github.com/bigcommerce/cornerstone/pull/1525)
- Remove Google Plus [#1526](https://github.com/bigcommerce/cornerstone/pull/1526)

## 3.5.1 (2019-06-24)
- Fix conditional logic in share.html [#1522](https://github.com/bigcommerce/cornerstone/pull/1522)
Expand Down
5 changes: 0 additions & 5 deletions assets/scss/components/stencil/socialLinks/_socialLinks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@
}
}

// scss-lint:disable SelectorFormat
.google_plusone_iframe_widget {
// scss-lint:disable ImportantRule
width: inherit !important;
}
// scss-lint:enable SelectorFormat

// scss-lint:disable SelectorFormat
Expand Down
6 changes: 1 addition & 5 deletions templates/components/amp/common/share.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
{{#each settings.add_this.buttons}}
{{#all (if service '!==' 'google') (if service '!==' 'print') (if service '!==' 'facebook')}}
<li class="socialLinks-item socialLinks-item--{{service}}">
{{#if service '===' 'google_plusone'}}
<amp-social-share class="amp-social-share" data-vars-product-link="{{url}}" data-vars-product-id="{{id}}" data-vars-product-name="{{name}}" data-vars-social-type="gplus" type="gplus"></amp-social-share>
{{else}}
<amp-social-share class="amp-social-share" data-vars-product-link="{{url}}" data-vars-product-id="{{id}}" data-vars-product-name="{{name}}" data-vars-social-type="{{service}}" type="{{service}}"></amp-social-share>
{{/if}}
<amp-social-share class="amp-social-share" data-vars-product-link="{{url}}" data-vars-product-id="{{id}}" data-vars-product-name="{{name}}" data-vars-social-type="{{service}}" type="{{service}}"></amp-social-share>
</li>
{{/all}}
{{/each}}
Expand Down
4 changes: 1 addition & 3 deletions templates/components/common/share.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
{{#each settings.add_this.buttons}}
<li class="socialLinks-item socialLinks-item--{{service}}">
<a class="addthis_button_{{service}} icon icon--{{service}}" {{{annotation}}}>
{{#if service '===' 'google_plusone'}}
<!-- No custom icons allowed with g+ -->
{{else if service '===' 'facebook'}}
{{if service '===' 'facebook'}}
<svg>
<use xlink:href="#icon-facebook"/>
</svg>
Expand Down
12 changes: 3 additions & 9 deletions templates/components/common/social-links.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@
<ul class="socialLinks socialLinks--alt">
{{#each social_media}}
<li class="socialLinks-item">
{{#if display_name '===' 'google+'}}
<a class="icon icon--google" href="{{url}}" target="_blank">
<svg><use xlink:href="#icon-google" /></svg>
</a>
{{else}}
<a class="icon icon--{{display_name}}" href="{{url}}" target="_blank">
<svg><use xlink:href="#icon-{{display_name}}" /></svg>
</a>
{{/if}}
<a class="icon icon--{{display_name}}" href="{{url}}" target="_blank">
<svg><use xlink:href="#icon-{{display_name}}" /></svg>
</a>
</li>
{{/each}}
</ul>
Expand Down

0 comments on commit c6e0958

Please sign in to comment.