Skip to content

Commit

Permalink
fix(storefront): BCTHEME-215 Delete item button in cart cut off from …
Browse files Browse the repository at this point in the history
…right side when in focus
  • Loading branch information
BC-tymurbiedukhin committed Sep 7, 2020
1 parent cea4c32 commit 7789ab8
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions assets/scss/common/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import 'aria';
4 changes: 4 additions & 0 deletions assets/scss/components/stencil/cart/_cart.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
// -----------------------------------------------------------------------------

$cart-item-spacing: spacing("single");
$cart-content-padding-right: 4px;

$cart-thumbnail-maxWidth: remCalc(100px);
$cart-thumbnail-height: remCalc(100px);
Expand Down Expand Up @@ -217,6 +218,9 @@ $cart-item-label-offset: $cart-thumbnail-maxWidth + $cart-item-sp

// Cart content
// -----------------------------------------------------------------------------
.cart-content-padding-right {
padding-right: $cart-content-padding-right;
}

.cart-header-quantity,
.cart-item-quantity {
Expand Down
1 change: 1 addition & 0 deletions assets/scss/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
@import "../../node_modules/@bigcommerce/citadel/dist/vendor/normalize/normalize"; // 1
@import "../../node_modules/@bigcommerce/citadel/dist/components/components"; // 2
@import "components/components"; // 3
@import "common/index";


// Layouts
Expand Down
1 change: 0 additions & 1 deletion assets/scss/tools/_tools.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import "list";
@import "string";
@import "image";
@import "aria";
10 changes: 5 additions & 5 deletions templates/pages/cart.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
{{#if cart.items.length}}
<div class="loadingOverlay"></div>

<div data-cart-content>
<div data-cart-content class="cart-content-padding-right">
{{> components/cart/content}}
</div>

<div data-cart-totals>
<div data-cart-totals class="cart-content-padding-right">
{{> components/cart/totals}}
</div>

{{#if cart.show_primary_checkout_button}}
<div class="cart-actions">
<div class="cart-actions cart-content-padding-right">
<a class="button button--primary" href="{{urls.checkout.single_address}}" title="{{lang 'cart.checkout.title'}}">{{lang 'cart.checkout.button'}}</a>
{{#if cart.show_multiple_address_shipping}}
<a class="checkoutMultiple" href="{{urls.checkout.multiple_address}}">
Expand All @@ -34,13 +34,13 @@
{{/if}}
</div>
{{else}}
<div class="cart-actions">
<div class="cart-actions cart-content-padding-right">
<a class="button" href="{{urls.home}}" title="{{lang 'cart.continue_shopping'}}">{{lang 'cart.continue_shopping'}}</a>
</div>
{{/if}}

{{#if cart.additional_checkout_buttons}}
<div class="cart-additionalCheckoutButtons">
<div class="cart-additionalCheckoutButtons cart-content-padding-right">
{{#each cart.additional_checkout_buttons}}
{{{this}}}
{{/each}}
Expand Down

0 comments on commit 7789ab8

Please sign in to comment.