From b5b60edbb68bde7841ef17cfa1d549dee7c30ae5 Mon Sep 17 00:00:00 2001 From: Nathan Booker Date: Tue, 5 Nov 2019 13:24:19 -0600 Subject: [PATCH] Fix image sizing on review modal --- CHANGELOG.md | 1 + assets/scss/components/stencil/writeReview/_writeReview.scss | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a28c0c183..f3d41c706e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Draft - Fixes body text color not taking effect for cart item headings on mobile / tablet [#1586](https://github.com/bigcommerce/cornerstone/pull/1586) +- Fix styling of review modal image [#1592](https://github.com/bigcommerce/cornerstone/pull/1592) ## 4.2.1 (2019-10-15) - Added missing gift certificate translation diff --git a/assets/scss/components/stencil/writeReview/_writeReview.scss b/assets/scss/components/stencil/writeReview/_writeReview.scss index 2ad352a0e1..47df822618 100644 --- a/assets/scss/components/stencil/writeReview/_writeReview.scss +++ b/assets/scss/components/stencil/writeReview/_writeReview.scss @@ -31,6 +31,10 @@ img { @include lazy-loaded-img; + height: 100%; + object-fit: contain; + /* Object-fit polyfill */ + font-family: 'object-fit: contain;'; } @include lazy-loaded-padding('product_size');