Commit d058085 1 parent a1b5f38 commit d058085 Copy full SHA for d058085
File tree 7 files changed +70
-8
lines changed
7 files changed +70
-8
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Draft
4
4
- Update bigcommerce.com footer link [ #990 ] ( https://github.com/bigcommerce/cornerstone/pull/990 )
5
+ - Fix invalid icon HTML in AMP templates [ #989 ] ( https://github.com/bigcommerce/cornerstone/pull/989 )
5
6
6
7
## 1.6.3 (2017-03-28)
7
8
- ` stencil.conf.js ` was refactored to support webpack2 builds [ 961] ( https://github.com/bigcommerce/cornerstone/pull/961 )
Original file line number Diff line number Diff line change
1
+ < div class ="alertBox alertBox--error ">
2
+ < div class ="alertBox-column alertBox-icon ">
3
+ < 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 ="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z "> </ path > </ svg > </ span >
4
+ </ div >
5
+ < p class ="alertBox-column alertBox-message ">
6
+ < span > {{{this}}}</ span >
7
+ </ p >
8
+ </ div >
Original file line number Diff line number Diff line change
1
+ < div class ="alertBox alertBox--success ">
2
+ < div class ="alertBox-column alertBox-icon ">
3
+ < 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 ="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z "> </ path > </ svg > </ span >
4
+ </ div >
5
+ < p class ="alertBox-column alertBox-message ">
6
+ < span > {{{this}}}</ span >
7
+ </ p >
8
+ </ div >
Original file line number Diff line number Diff line change 20
20
{{#if currency_selector.currencies.length '> ' 1}}
21
21
< li class ="navPages-item ">
22
22
< 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 >
24
24
</ a >
25
25
< div class ="navPage-subMenu " id ="navPages-currency " aria-hidden ="true " tabindex ="-1 ">
26
26
< ul class ="navPage-subMenu-list ">
57
57
{{#if customer}}
58
58
< li class ="navPages-item ">
59
59
< 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 >
61
61
</ a >
62
62
< div class ="navPage-subMenu " id ="navPages-account " aria-hidden ="true " tabindex ="-1 ">
63
63
< ul class ="navPage-subMenu-list ">
Original file line number Diff line number Diff line change 3
3
{{#if previous}}
4
4
< li class ="pagination-item pagination-item--previous ">
5
5
< 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 >
7
7
{{lang 'common.previous'}}
8
8
</ a >
9
9
</ li >
24
24
< li class ="pagination-item pagination-item--next ">
25
25
< a class ="pagination-link " href ="{{next}} " {{#unless reload}}data-faceted-search-facet{{ /unless}}>
26
26
{{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 >
28
28
</ a >
29
29
</ li >
30
30
{{/if}}
Original file line number Diff line number Diff line change 167
167
content: "\A";
168
168
white-space: pre;
169
169
}
170
+
171
+ .alertBox {
172
+ margin-bottom: .78571rem;
173
+ padding: .78571rem 1.14286rem;
174
+ background-color: #e8e8e8;
175
+ border-radius: 4px
176
+ }
177
+
178
+ .alertBox .icon {
179
+ height:1.42857rem;
180
+ width:1.42857rem
181
+ }
182
+
183
+ .alertBox--success {
184
+ background-color:#d5ffd8;
185
+ border-color:#d5ffd8;
186
+ }
187
+
188
+ .alertBox--success svg {
189
+ fill:#69d66f
190
+ }
191
+
192
+ .alertBox--error{
193
+ background-color:#fdd;
194
+ border-color:#fdd
195
+ }
196
+
197
+ .alertBox--error svg {
198
+ fill:#ff7d7d
199
+ }
200
+
201
+ .alertBox-column{
202
+ display:table-cell;
203
+ vertical-align:middle
204
+ }
205
+
206
+ .alertBox-icon{
207
+ text-align: center;
208
+ padding-right: 1.14286rem
209
+ }
210
+
211
+ .alertBox-message {
212
+ margin: 0;
213
+ width: 100%
214
+ }
Original file line number Diff line number Diff line change 1
1
< div class ="productView ">
2
2
{{#each product.reviews.messages}}
3
3
{{#if error}}
4
- {{> components/common/alert-error error}}
4
+ {{> components/amp/ common/alert-error error}}
5
5
{{/if}}
6
6
{{#if success}}
7
- {{> components/common/alert-success success}}
7
+ {{> components/amp/ common/alert-success success}}
8
8
{{/if}}
9
9
{{/each}}
10
10
43
43
{{/or}}
44
44
{{#if product.out_of_stock}}
45
45
{{#if product.out_of_stock_message}}
46
- {{> components/common/alert-error product.out_of_stock_message}}
46
+ {{> components/amp/ common/alert-error product.out_of_stock_message}}
47
47
{{else}}
48
- {{> components/common/alert-error (lang 'products.sold_out')}}
48
+ {{> components/amp/ common/alert-error (lang 'products.sold_out')}}
49
49
{{/if}}
50
50
{{/if}}
51
51
</ div >
You can’t perform that action at this time.
0 commit comments