From 2893a00e553aa0cba26d19c4a31e26c629b8681e Mon Sep 17 00:00:00 2001 From: Joseph Chotard Date: Tue, 28 May 2024 21:12:38 +0300 Subject: [PATCH] [core] fix(Tabs): use gap instead of margin to fix RTL spacing (#6834) --- packages/core/src/components/tabs/_tabs.scss | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/core/src/components/tabs/_tabs.scss b/packages/core/src/components/tabs/_tabs.scss index e02539a02b..cedc2ceb26 100644 --- a/packages/core/src/components/tabs/_tabs.scss +++ b/packages/core/src/components/tabs/_tabs.scss @@ -90,16 +90,11 @@ $tab-indicator-width: 3px !default; border: none; display: flex; flex: 0 0 auto; + gap: $pt-grid-size * 2; list-style: none; margin: 0; padding: 0; position: relative; - - // this is fine. - /* stylelint-disable-next-line selector-no-universal */ - > *:not(:last-child) { - margin-right: $pt-grid-size * 2; - } } .#{$ns}-tab {