Skip to content

Commit

Permalink
STRF-4056 Add image width & height for carousel images.
Browse files Browse the repository at this point in the history
  • Loading branch information
junedkazi committed Nov 29, 2017
1 parent c6cb3cc commit b68bd3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Draft
- Fixes functionality of carousel links in IE and Edge. [#1093](https://github.com/bigcommerce/cornerstone/pull/1093)
- Add image width & height for carousel images. [#1126](https://github.com/bigcommerce/cornerstone/pull/1126)

## 1.10.0 (2017-11-15)
- Fix spaces in faceted search option names [#1113](https://github.com/bigcommerce/cornerstone/pull/1113)
Expand Down
3 changes: 2 additions & 1 deletion templates/components/carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
<a href="{{url}}">
<div class="heroCarousel-slide {{#if ../theme_settings.homepage_stretch_carousel_images}}heroCarousel-slide--stretch{{/if}}"
style="background-image: url({{image}})">
<img class="heroCarousel-image" data-lazy="{{image}}" alt="{{alt_text}}" title="{{alt_text}}"/>
<img class="heroCarousel-image" data-lazy="{{image}}" alt="{{alt_text}}" title="{{alt_text}}""
{{#if image_width}}width="{{image_width}}"{{/if}} {{#if image_height}}height="{{image_height}}"{{/if}} />
{{#if heading}}
{{> components/carousel-content show_background=true}}
{{else}}
Expand Down

0 comments on commit b68bd3a

Please sign in to comment.