File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,10 @@ quick-order-list .pagination-wrapper {
219219 height : 1.5rem ;
220220 }
221221
222+ .quick-order-list-total__column .large-up-hide .loading__spinner {
223+ margin-top : 2.5rem ;
224+ }
225+
222226 quick-order-list-remove-all-button {
223227 margin-left : -1.5rem ;
224228 margin-top : 1rem ;
@@ -543,6 +547,16 @@ quick-order-list .pagination-wrapper {
543547 }
544548}
545549
550+ .quick-order-list-total__column .large-up-hide .variant-remove-total {
551+ display : flex;
552+ justify-content : center;
553+ margin : 0 ;
554+
555+ .loading__spinner {
556+ margin-top : 1.5rem ;
557+ }
558+ }
559+
546560.quick-order-list__total-items {
547561 display : flex;
548562 align-items : center;
Original file line number Diff line number Diff line change @@ -432,7 +432,9 @@ if (!customElements.get('quick-order-list')) {
432432
433433 toggleLoading ( loading , target = this ) {
434434 target . querySelector ( '#shopping-cart-variant-item-status' ) . toggleAttribute ( 'aria-hidden' , ! loading ) ;
435- target . querySelector ( '.variant-remove-total .loading__spinner' ) ?. classList . toggle ( 'hidden' , ! loading ) ;
435+ target
436+ . querySelectorAll ( '.variant-remove-total .loading__spinner' )
437+ ?. forEach ( ( spinner ) => spinner . classList . toggle ( 'hidden' , ! loading ) ) ;
436438 }
437439 }
438440 ) ;
Original file line number Diff line number Diff line change 233233 <div class =" variant-remove-total" >
234234 {%- render 'loading-spinner' -%}
235235 <quick-order-list-remove-all-button
236- class =" no-js- hidden"
236+ class =" {% if items_in_cart == 0 %} hidden{% endif %} "
237237 data-action =" confirm"
238238 >
239239 <button class =" button button--tertiary" type =" button" >
You can’t perform that action at this time.
0 commit comments