Skip to content

Commit

Permalink
fix(storefront): BCTHEME-362 fix cut off cart button on zooming 400 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-alexsaiannyi authored Feb 17, 2021
1 parent a1b435a commit 10d18ae
Show file tree
Hide file tree
Showing 2 changed files with 19 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 cut off on Cart button when Zooming up to 400%. [#1988](https://github.com/bigcommerce/cornerstone/pull/1988)
- Category pages are creating alt attribute within the span tag. [1987](https://github.com/bigcommerce/cornerstone/pull/1987)
- Add alt attribute for no image placeholders. [#1984](https://github.com/bigcommerce/cornerstone/pull/1984)
- For non-required options, when the "None" option displays on the storefront it should be deselected when another option is chosen. [#1980](https://github.com/bigcommerce/cornerstone/pull/1980)
Expand Down
19 changes: 18 additions & 1 deletion assets/scss/components/stencil/cart/_cart.scss
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,16 @@ $card-preview-zoom-bottom-offset: 6rem;
}

@include lazy-loaded-padding('productthumb_size');

&:after {
@include breakpoint("xxsmall") {
padding-bottom: 75%;
}

@include breakpoint("xsmall") {
padding-bottom: 100%;
}
}
}

.previewCartItem-content {
Expand Down Expand Up @@ -640,7 +650,14 @@ $card-preview-zoom-bottom-offset: 6rem;
@include grid-row;
border-top: container("border");
display: block;
padding: spacing("single") spacing("half");

@include breakpoint("xxsmall") {
padding: spacing("half") spacing("quarter");
}

@include breakpoint("xsmall") {
padding: spacing("single") spacing("half");
}

.button {
margin: 0;
Expand Down

0 comments on commit 10d18ae

Please sign in to comment.