diff --git a/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/form-step/style.scss b/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/form-step/style.scss index 9f9d8be02dc..b381ed43472 100644 --- a/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/form-step/style.scss +++ b/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/form-step/style.scss @@ -1,8 +1,8 @@ -.wc-block-components-checkout-form { +.wc-block-components-form { counter-reset: checkout-step; } -.wc-block-components-checkout-form .wc-block-components-checkout-step { +.wc-block-components-form .wc-block-components-checkout-step { position: relative; border: none; padding: 0 0 0 $gap-larger; @@ -22,7 +22,7 @@ padding-bottom: em($gap-large); } -.wc-block-components-checkout-form .wc-block-components-checkout-step:disabled { +.wc-block-components-form .wc-block-components-checkout-step:disabled { opacity: 0.6; } diff --git a/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/form/style.scss b/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/form/style.scss deleted file mode 100644 index 1e79c4f0500..00000000000 --- a/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/form/style.scss +++ /dev/null @@ -1,4 +0,0 @@ -.wc-block-components-checkout-form { - margin: 0; - max-width: 100%; -} diff --git a/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/index.js b/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/index.js index 2c81b4b39c7..cc8c82bfad8 100644 --- a/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/index.js +++ b/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/index.js @@ -1,5 +1,4 @@ export { default as AddressForm } from './address-form'; -export { default as CheckoutForm } from './form'; export { default as FormStep } from './form-step'; export { default as OrderSummary } from './order-summary'; export { default as PlaceOrderButton } from './place-order-button'; diff --git a/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/form/index.js b/plugins/woocommerce-blocks/assets/js/base/components/form/index.js similarity index 78% rename from plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/form/index.js rename to plugins/woocommerce-blocks/assets/js/base/components/form/index.js index 35753acddb6..987f930ea04 100644 --- a/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/form/index.js +++ b/plugins/woocommerce-blocks/assets/js/base/components/form/index.js @@ -4,11 +4,6 @@ import classnames from 'classnames'; import PropTypes from 'prop-types'; -/** - * Internal dependencies - */ -import './style.scss'; - const CheckoutForm = ( { className, children, @@ -18,12 +13,10 @@ const CheckoutForm = ( { event.preventDefault(); onSubmit( event ); }; + return (