Skip to content

Commit 4497481

Browse files
committed
🌸 Marketplace: Menu has a prettier Add to Cart button
- #2153 The `Add to Cart` button is wide and looks nice!
1 parent b0ff43a commit 4497481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎app/furniture/marketplace/menu/product_component.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<%- cart_product = cart.cart_products.find_by(product:) %>
2525

2626
<%- if !cart_product %>
27-
<%= button_to("Add to Cart", cart.location(child: :cart_products), method: :post, params: { cart_product: { product_id: product.id, quantity: 1 } }) %>
27+
<%= button_to("Add to Cart", cart.location(child: :cart_products), method: :post, params: { cart_product: { product_id: product.id, quantity: 1 } }, class: "w-full --secondary") %>
2828
<%- else %>
2929
<%= render cart_product.quantity_picker %>
3030
<%- end %>

0 commit comments

Comments
 (0)