Skip to content

Commit

Permalink
fix: improve the ui of out-of-stock products on the cart page after a…
Browse files Browse the repository at this point in the history
… failing cart validation (#443)
  • Loading branch information
SGrueber authored Oct 29, 2020
1 parent e6c5478 commit 5488707
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<div class="empty-cart">
<div>
<!-- Error message -->
<ish-error-message [error]="error"></ish-error-message>
<!-- Error message -->
<ish-error-message [error]="error"></ish-error-message>

<!-- Info messages -->
<ish-basket-info></ish-basket-info>
<!-- Info messages -->
<ish-basket-info></ish-basket-info>

<!-- Validation messages-->
<ish-basket-validation-results></ish-basket-validation-results>
</div>
<!-- Validation messages-->
<ish-basket-validation-results></ish-basket-validation-results>

<div class="empty-cart">
<img class="empty-cart-icon" src="assets/img/empty-cart.png" alt="{{ 'shopping_cart.empty.alt.text' | translate }}" />

<h2>{{ 'shopping_cart.empty.text' | translate }}</h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
</div>
<!---Product Description --->
<div class="col-5 col-md-4 list-item">
<div class="product-title">
<a [routerLink]="product | ishProductRoute">{{ product.name }}</a>
</div>
<a [routerLink]="product | ishProductRoute">{{ product.name }}</a>
<p class="product-id">{{ 'product.itemNumber.label' | translate }}&nbsp;{{ pli.productSKU }}</p>

<!---Out of Stock --->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
</div>
<!---Product Description --->
<div class="col-7 col-md-6 list-item">
<div class="product-title">
<a [routerLink]="product | ishProductRoute">{{ product.name }}</a>
</div>
<a [routerLink]="product | ishProductRoute" class="product-title">{{ product.name }}</a>
<p class="product-id">{{ 'product.itemNumber.label' | translate }}&nbsp;{{ product.sku }}</p>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/styles/pages/checkout/shopping-cart.scss
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
border-bottom: $border-width-default solid $border-color-light;

.empty-cart-icon {
padding: ($space-default * 7) 0 ($space-default * 2);
padding: ($space-default * 4) 0 ($space-default * 2);
}

h2 {
Expand Down

0 comments on commit 5488707

Please sign in to comment.