Skip to content

Commit d25f900

Browse files
author
Spencer Canner
committed
move line item quantity before price in the dom
1 parent 33d6aff commit d25f900

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/defaults/components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,9 @@ const defaults = {
259259
'image',
260260
'title',
261261
'variantTitle',
262+
'quantity',
262263
'price',
263264
'priceWithDiscounts',
264-
'quantity',
265265
],
266266
classes: {
267267
lineItem: 'shopify-buy__cart-item',

src/styles/embeds/sass/components/cart.css

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
float: right;
133133
font-size: 14px;
134134
font-weight: bold;
135-
line-height: 26px;
135+
line-height: 30px;
136136
}
137137

138138
.shopify-buy__cart-item__price-and-discounts {
@@ -265,10 +265,10 @@
265265
}
266266

267267
.shopify-buy__quantity-container {
268+
display: inline-block;
268269
margin-left: 80px;
269-
margin-right: 100px;
270-
height: 26px;
271-
line-height: 26px;
270+
height: 30px;
271+
line-height: 30px;
272272
}
273273

274274
.shopify-buy__quantity-container.is-loading {
@@ -285,8 +285,4 @@
285285
.shopify-buy__cart-item__price-and-discounts {
286286
max-width: 90px;
287287
}
288-
289-
.shopify-buy__quantity-container {
290-
margin-right: 90px;
291-
}
292288
}

0 commit comments

Comments
 (0)