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

Commit

Permalink
Add to Cart Form Block > Ensure the editor preview is properly displa…
Browse files Browse the repository at this point in the history
…yed 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
  • Loading branch information
nefeline authored and dinhtungdu committed Mar 1, 2023
1 parent 19d3ead commit d571749
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface Attributes {

const Edit = () => {
const blockProps = useBlockProps( {
className: 'woocommerce wc-block-add-to-cart-form',
className: 'wc-block-add-to-cart-form',
} );

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,27 @@
flex-direction: row;
}

.wc-block-add-to-cart-form__notice {
.wc-block-add-to-cart-form__notice.components-notice {
margin: 10px 0;
color: $black;
max-width: 60%;
}
input.wc-block-add-to-cart-form__quantity {
width: 35px;

input.wc-block-add-to-cart-form__quantity[type="number"] {
max-width: 50px;
min-height: 23px;
float: left;
padding: 10px 6px 10px 12px;
padding: 6px 6px 6px 12px;
margin-right: 10px;
height: 15px;
font-size: 13px;
height: inherit;
}

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

.wc-block-add-to-cart-form__button {
button.components-button.wc-block-add-to-cart-form__button {
float: left;
padding: 20px 30px;
border-radius: 0;
Expand Down

0 comments on commit d571749

Please sign in to comment.