Skip to content

Commit de836f7

Browse files
committed
Fix invalid <i> HTML in AMP templates
1 parent a1b5f38 commit de836f7

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Draft
44
- Update bigcommerce.com footer link [#990](https://github.com/bigcommerce/cornerstone/pull/990)
5+
- Use <span> instead of <i> for icons in AMP template [#989](https://github.com/bigcommerce/cornerstone/pull/989)
56

67
## 1.6.3 (2017-03-28)
78
- `stencil.conf.js` was refactored to support webpack2 builds [961](https://github.com/bigcommerce/cornerstone/pull/961)

templates/components/amp/common/navigation-menu.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{{#if currency_selector.currencies.length '>' 1}}
2121
<li class="navPages-item">
2222
<a class="navPages-action has-subMenu" href="#" data-collapsible="navPages-currency" aria-controls="navPages-currency" aria-expanded="false">
23-
{{lang 'common.currency' code=currency_selector.active_currency_code}} <i class="icon navPages-action-moreIcon" aria-hidden="true"><svg><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-chevron-down"></use></svg></i>
23+
{{lang 'common.currency' code=currency_selector.active_currency_code}} <span class="icon navPages-action-moreIcon" aria-hidden="true"><svg><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-chevron-down"></use></svg></span>
2424
</a>
2525
<div class="navPage-subMenu" id="navPages-currency" aria-hidden="true" tabindex="-1">
2626
<ul class="navPage-subMenu-list">
@@ -57,7 +57,7 @@
5757
{{#if customer}}
5858
<li class="navPages-item">
5959
<a class="navPages-action has-subMenu" href="{{urls.account.index}}" data-collapsible="navPages-account">
60-
{{lang 'common.account'}} <i class="icon navPages-action-moreIcon" aria-hidden="true"><svg><use xlink:href="#icon-chevron-down" /></svg></i>
60+
{{lang 'common.account'}} <span class="icon navPages-action-moreIcon" aria-hidden="true"><svg><use xlink:href="#icon-chevron-down" /></svg></span>
6161
</a>
6262
<div class="navPage-subMenu" id="navPages-account" aria-hidden="true" tabindex="-1">
6363
<ul class="navPage-subMenu-list">

templates/components/amp/common/paginator.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{{#if previous}}
44
<li class="pagination-item pagination-item--previous">
55
<a class="pagination-link" href="{{previous}}" {{#unless reload}}data-faceted-search-facet{{/unless}}>
6-
<i class="icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg></i>
6+
<span class="icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg></span>
77
{{lang 'common.previous'}}
88
</a>
99
</li>
@@ -24,7 +24,7 @@
2424
<li class="pagination-item pagination-item--next">
2525
<a class="pagination-link" href="{{next}}" {{#unless reload}}data-faceted-search-facet{{/unless}}>
2626
{{lang 'common.next'}}
27-
<i class="icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></i>
27+
<span class="icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></span>
2828
</a>
2929
</li>
3030
{{/if}}

0 commit comments

Comments
 (0)