From 1b36eeada894cf128bfd4e87e512017a7d80aa22 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 30 Mar 2023 11:16:16 +0100 Subject: [PATCH] Fix link margin/padding --- assets/js/base/components/sidebar-layout/style.scss | 5 ++++- assets/js/blocks/checkout/styles/style.scss | 10 ++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/assets/js/base/components/sidebar-layout/style.scss b/assets/js/base/components/sidebar-layout/style.scss index 617f2d743a2..6c30e710474 100644 --- a/assets/js/base/components/sidebar-layout/style.scss +++ b/assets/js/base/components/sidebar-layout/style.scss @@ -49,11 +49,14 @@ .is-large { .wc-block-components-sidebar { .wc-block-components-totals-item, - .wc-block-components-totals-coupon-link, .wc-block-components-panel { padding-left: $gap; padding-right: $gap; } + .wc-block-components-totals-coupon-link { + margin-left: $gap; + margin-right: $gap; + } .wc-block-components-panel { .wc-block-components-totals-item { diff --git a/assets/js/blocks/checkout/styles/style.scss b/assets/js/blocks/checkout/styles/style.scss index c011a7bf715..909251e26d0 100644 --- a/assets/js/blocks/checkout/styles/style.scss +++ b/assets/js/blocks/checkout/styles/style.scss @@ -58,11 +58,14 @@ } } .wc-block-components-totals-item, - .wc-block-components-totals-coupon-link, .wc-block-components-panel { padding-left: $gap; padding-right: $gap; } + .wc-block-components-totals-coupon-link { + margin-left: $gap; + margin-right: $gap; + } } } // Skeleton is shown before mobile classes are appended. @@ -79,11 +82,14 @@ padding: 0; width: 100%; .wc-block-components-totals-item, - .wc-block-components-totals-coupon-link, .wc-block-components-panel { padding-left: 0; padding-right: 0; } + .wc-block-components-totals-coupon-link { + margin-left: 0; + margin-right: 0; + } } } }