feat: estiliza o botao do carrinho e o botao de adicionar

This commit is contained in:
Leonardo Pereira Rocha 2023-02-01 15:43:28 -03:00
parent e64b8a39f8
commit 03b5eab5fb
2 changed files with 34 additions and 6 deletions

View File

@ -1,9 +1,26 @@
[dataid*="product-images"] {
margin-left: 40px;
width: 80%;
}
[class*="productImageTag--main"] { [class*="productImageTag--main"] {
max-width: 80.25%; max-width: 80.25%;
object-fit: none; object-fit: none;
} }
[class*="flexRow--button-cart"] :global(.vtex-button) {
background-color: black;
border-color: black;
width: 97.952%;
height: 49px;
}
[class*="numeric-stepper__minus-button"] {
height: 49px;
position: relative;
}
[class*="numeric-stepper__input"] {
height: 49px;
position: relative;
}
[class*="numeric-stepper__plus-button"] {
height: 49px;
position: relative;
}

View File

@ -85,6 +85,7 @@
}, },
"product-images": { "product-images": {
"props": { "props": {
"width": "40%",
"contentType": "images", "contentType": "images",
"showNavigationArrows": false, "showNavigationArrows": false,
"showPaginationDots": false, "showPaginationDots": false,
@ -122,7 +123,6 @@
"flex-layout.row#selling-price", "flex-layout.row#selling-price",
"product-installments#m3-academy", "product-installments#m3-academy",
"sku-selector", "sku-selector",
"product-quantity",
"product-assembly-options", "product-assembly-options",
"product-gifts", "product-gifts",
"flex-layout.row#buy-button", "flex-layout.row#buy-button",
@ -162,6 +162,17 @@
"marginBottom": 7, "marginBottom": 7,
"blockClass": "button-cart" "blockClass": "button-cart"
}, },
"children": ["product-quantity", "html#add-to-cart-button"]
},
"product-quantity": {
"props": { "width": "25%" }
},
"html#add-to-cart-button": {
"props": {
"testId": "add-to-cart-button"
},
"children": ["add-to-cart-button"] "children": ["add-to-cart-button"]
}, },