From b955e0f71068da5cfa383efca86860356a314514 Mon Sep 17 00:00:00 2001 From: Mikko Tapionlinna Date: Wed, 27 Sep 2023 16:21:48 +0300 Subject: [PATCH] UHF-8489: Improve icon margins and add support for data-icon-end --- src/scss/05_objects/_button.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scss/05_objects/_button.scss b/src/scss/05_objects/_button.scss index 79ac348ad..3a175e251 100644 --- a/src/scss/05_objects/_button.scss +++ b/src/scss/05_objects/_button.scss @@ -548,11 +548,12 @@ a[data-variant][href] { margin-block: -2px; &:not(:last-child) { - margin-left: -8px; + margin-inline-start: -8px; // When the icon is not alone, it should be closer to left edge on LTR languages } } &:where( + [data-icon-end], [data-is-external], [data-protocol='tel'], [data-protocol='mailto'] @@ -561,7 +562,7 @@ a[data-variant][href] { margin-block: -2px; &:not(:first-child) { - margin-right: -8px; + margin-inline-end: -8px; // When the icon is not alone, it should be closer to right edge on LTR languages } }