Skip to content

Commit

Permalink
fix(storefront): BCTHEME-153 Insufficient link text
Browse files Browse the repository at this point in the history
  • Loading branch information
BC-tymurbiedukhin committed Aug 13, 2020
1 parent 353c9c8 commit 1d0061f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## Draft
- Fixed Shop by price insufficient link text. [#1786](https://github.com/bigcommerce/cornerstone/pull/1786)

## 4.9.0 (08-05-2020)

Expand Down
1 change: 1 addition & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@
"category": {
"label": "Categories",
"shop_by_price": "Shop By Price",
"shop_by_price_range_aria": "Price range from {from} to {to}",
"reset": "Reset",
"view_all": {
"name": "All {category}"
Expand Down
9 changes: 8 additions & 1 deletion templates/components/category/shop-by-price.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ <h5 class="sidebarBlock-heading">{{lang 'category.shop_by_price'}}</h5>
<ul class="navList">
{{#each shop_by_price}}
<li class="navList-item">
<a class="navList-action {{#if selected }} is-active {{/if}}" href="{{url}}" alt="{{low.formatted}} - {{high.formatted}}" title="{{low.formatted}} - {{high.formatted}}">{{low.formatted}} - {{high.formatted}}</a>
<a class="navList-action
{{#if selected }} is-active {{/if}}"
href="{{url}}"
title="{{low.formatted}} - {{high.formatted}}"
aria-label="{{{lang 'category.shop_by_price_range_aria' from=low.formatted to=high.formatted}}}"
>
{{low.formatted}} - {{high.formatted}}
</a>
</li>
{{/each}}

Expand Down
2 changes: 1 addition & 1 deletion templates/components/category/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h5 class="sidebarBlock-heading">{{category.name}}</h5>
<ul class="navList">
{{#each category.subcategories}}
<li class="navList-item">
<a class="navList-action" href="{{url}}" alt="{{name}}" title="{{name}}">{{name}}</a>
<a class="navList-action" href="{{url}}" title="{{name}}">{{name}}</a>
</li>
{{/each}}
</ul>
Expand Down

0 comments on commit 1d0061f

Please sign in to comment.