Skip to content

Commit

Permalink
fix(storefront):bctheme-212 fix rating icons focus border
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-alexsaiannyi committed Sep 4, 2020
1 parent cea4c32 commit bb59bae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
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 review rating icons focus border. [#1818](https://github.com/bigcommerce/cornerstone/pull/1818)
- Review link in quick modal focused twice. [#1797](https://github.com/bigcommerce/cornerstone/pull/1797)
- Fixed product image doesn't change on click when viewing a product with multiple images in IE11 [#1748](https://github.com/bigcommerce/cornerstone/pull/1748)
- Fixed alt text on image change in product view [#1747](https://github.com/bigcommerce/cornerstone/pull/1747)
Expand Down
5 changes: 5 additions & 0 deletions assets/scss/components/stencil/productView/_productView.scss
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@
}
}

.productView-iconWrapper {
display: inline-flex;
line-height: 1;
}

.productView-reviewLink {
display: inline-block;
margin-left: spacing("quarter");
Expand Down
3 changes: 2 additions & 1 deletion templates/components/products/product-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ <h2 class="productView-brand"{{#if schema}} itemprop="brand" itemscope itemtype=
<meta itemprop="reviewCount" content="{{product.num_reviews}}">
{{/if}}
{{/if}}
<span title="{{lang 'products.reviews.rating_aria_label' current_rating=product.rating max_rating=5}}"
<span class="productView-iconWrapper"
title="{{lang 'products.reviews.rating_aria_label' current_rating=product.rating max_rating=5}}"
tabindex="0"
>
{{> components/products/ratings rating=product.rating}}
Expand Down

0 comments on commit bb59bae

Please sign in to comment.