Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit d571749

Browse files
nefelinedinhtungdu
authored andcommitted
Add to Cart Form Block > Ensure the editor preview is properly displayed with the Gutenberg plugin disabled (#8582)
* Update the editor styles for the add to cart form button so it is properly displayed with the Gutenberg plugin disabled. * update for the input height. * update the min-height
1 parent 19d3ead commit d571749

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

assets/js/atomic/blocks/product-elements/add-to-cart-form/edit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface Attributes {
1414

1515
const Edit = () => {
1616
const blockProps = useBlockProps( {
17-
className: 'woocommerce wc-block-add-to-cart-form',
17+
className: 'wc-block-add-to-cart-form',
1818
} );
1919

2020
return (

assets/js/atomic/blocks/product-elements/add-to-cart-form/editor.scss

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,27 @@
33
flex-direction: row;
44
}
55

6-
.wc-block-add-to-cart-form__notice {
6+
.wc-block-add-to-cart-form__notice.components-notice {
77
margin: 10px 0;
88
color: $black;
99
max-width: 60%;
1010
}
11-
input.wc-block-add-to-cart-form__quantity {
12-
width: 35px;
11+
12+
input.wc-block-add-to-cart-form__quantity[type="number"] {
13+
max-width: 50px;
14+
min-height: 23px;
1315
float: left;
14-
padding: 10px 6px 10px 12px;
16+
padding: 6px 6px 6px 12px;
1517
margin-right: 10px;
16-
height: 15px;
18+
font-size: 13px;
19+
height: inherit;
1720
}
1821

1922
input[type="number"]::-webkit-inner-spin-button {
2023
opacity: 1;
2124
}
2225

23-
.wc-block-add-to-cart-form__button {
26+
button.components-button.wc-block-add-to-cart-form__button {
2427
float: left;
2528
padding: 20px 30px;
2629
border-radius: 0;

0 commit comments

Comments
 (0)