Skip to content

Commit

Permalink
Merge pull request #1848 from yurytut1993/BCTHEME-265
Browse files Browse the repository at this point in the history
fix(storefront): BCTHEME-265 Return heading to product card
  • Loading branch information
BC-tymurbiedukhin committed Sep 23, 2020
2 parents a244865 + 0a0073c commit 999e451
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changelog

- Return heading to product card. [#1848](https://github.com/bigcommerce/cornerstone/pull/1848)
- Quick search query param needs to be fixed while navigating to search page. [#230](https://jira.bigcommerce.com/browse/BCTHEME-230)

## Draft
Expand Down
1 change: 1 addition & 0 deletions assets/scss/components/citadel/cards/_cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
> a {
color: $card-title-color;
text-decoration: $card-title-textDecoration;
display: block;

// scss-lint:disable NestingDepth
&:hover {
Expand Down
4 changes: 2 additions & 2 deletions templates/components/amp/products/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
{{#if brand.name}}
<p class="card-text" data-test-info-type="brandName">{{brand.name}}</p>
{{/if}}
<span class="card-title">
<h3 class="card-title">
<a data-vars-product-link="{{url}}" data-vars-product-id="{{id}}" data-vars-product-name="{{name}}" href="{{url}}">{{name}}</a>
</span>
</h3>

<div class="card-text" data-test-info-type="price">
{{#or customer (if theme_settings.restrict_to_login '!==' true)}}
Expand Down
4 changes: 2 additions & 2 deletions templates/components/products/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@
{{#if brand.name}}
<p class="card-text" data-test-info-type="brandName">{{brand.name}}</p>
{{/if}}
<span class="card-title">
<h3 class="card-title">
<a href="{{url}}" {{#if settings.data_tag_enabled}} data-event-type="product-click" {{/if}}>{{name}}</a>
</span>
</h3>

<div class="card-text" data-test-info-type="price">
{{#or customer (if theme_settings.restrict_to_login '!==' true)}}
Expand Down
4 changes: 2 additions & 2 deletions templates/pages/brands.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ <h1 class="page-heading">{{lang 'brand.label'}}</h1>
</a>
</figure>
<div class="card-body">
<span class="card-title">
<h3 class="card-title">
<a href="{{url}}">{{name}}</a>
</span>
</h3>
</div>
</article>
</li>
Expand Down
4 changes: 2 additions & 2 deletions templates/pages/compare.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ <h1 class="page-heading">{{lang 'compare.header' products=comparisons.length}}</
{{#if brand.name}}
<p class="card-text"><a href="{{brand.url}}">{{ brand.name }}</a></p>
{{/if}}
<span class="card-title">
<h3 class="card-title">
<a href="{{url}}">{{ name }}</a>
</span>
</h3>
{{#or ../customer (if ../theme_settings.restrict_to_login '!==' true)}}
{{#if price_range}}
{{> components/products/price-range}}
Expand Down

0 comments on commit 999e451

Please sign in to comment.