From 6dc9cf5de7f26bcfc235089271309a6d4fb0934e Mon Sep 17 00:00:00 2001 From: Lucio Giannotta Date: Thu, 18 Nov 2021 23:31:54 +0100 Subject: [PATCH] Checkout Terms Block: Fix Terms and Conditions checkbox position in editor (#5150) 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; }