From 5e164677db6afc6378279276312126ec27104ee4 Mon Sep 17 00:00:00 2001 From: "M. L. Giannotta" Date: Mon, 22 Nov 2021 11:12:13 +0100 Subject: [PATCH] Checkout Terms Block: Fix Terms and Conditions checkbox position in editor (#5150) (#5191) Within the editor, the checkbox appeared aligned at the bottom of the paragraph, while on the front-end it would appear aligned at the top. The alignment was actually correct but a top margin was assigned to checkboxes in the backend. Instead of removing that globally, this commit resets it for checkboxes within the checkout block. --- .../checkout/inner-blocks/checkout-terms-block/editor.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/js/blocks/cart-checkout/checkout/inner-blocks/checkout-terms-block/editor.scss b/assets/js/blocks/cart-checkout/checkout/inner-blocks/checkout-terms-block/editor.scss index 8b4c077027a..8603a840845 100644 --- a/assets/js/blocks/cart-checkout/checkout/inner-blocks/checkout-terms-block/editor.scss +++ b/assets/js/blocks/cart-checkout/checkout/inner-blocks/checkout-terms-block/editor.scss @@ -12,6 +12,10 @@ } } +.wc-block-components-checkbox { + margin-top: 0; +} + .wc-block-checkout__terms_notice .components-notice__action { margin-left: 0; }