Skip to content

Commit

Permalink
fix(content): STRF-4948 fix missing svg icons on AMP add-to-cart page…
Browse files Browse the repository at this point in the history
… by generating an template file that contains the assets
  • Loading branch information
David Payne committed Jun 13, 2018
1 parent 140103a commit 35cebc7
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Fix empty image on carousel wrap. [#1263](https://github.com/bigcommerce/cornerstone/pull/1263)
- Fix duplicate IDs occurrence in product options in certain situations & syntax fix in bulk-discount-rates component [#1223](https://github.com/bigcommerce/cornerstone/pull/1223)
- Fix use case that prevented retail/sale prices from displaying on product details page [#1262](https://github.com/bigcommerce/cornerstone/pull/1262)
- Fix svg arrows missing on AMP product pages. [#1258](https://github.com/bigcommerce/cornerstone/pull/1258)

## 2.1.0 (2018-06-01)
- Add Newsletter summary section to subscription form. [#1248](https://github.com/bigcommerce/cornerstone/pull/1248)
Expand Down
2 changes: 1 addition & 1 deletion assets/icons/instagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions assets/icons/stumbleupon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/img/icon-sprite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion grunt/svgstore.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ module.exports = {

'default': {
files: {
'./assets/img/icon-sprite.svg': ['./assets/icons/**/*.svg']
'./assets/img/icon-sprite.svg': ['./assets/icons/**/*.svg'],
'./templates/components/amp/common/icon-defs.html': ['./assets/icons/**/*.svg']
}
}
};
1 change: 1 addition & 0 deletions templates/components/amp/common/icon-defs.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion templates/layout/amp-iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</style>
</head>
<body>
<svg data-src="{{cdn 'icons/icons.svg'}}" class="icons-svg-sprite"></svg>
<div class="icons-svg-sprite">{{> components/amp/common/icon-defs }}</div>

{{#block "page"}} {{/block}}

Expand Down

0 comments on commit 35cebc7

Please sign in to comment.