From e62062631d17ec1d6a065ba37ff43abf0483b866 Mon Sep 17 00:00:00 2001 From: Jon Robson Date: Wed, 5 Oct 2022 09:19:26 -0700 Subject: [PATCH] Restrict margin between arrow and icon to feature flag Follow up to 1bb0a0e8f Bug: T319070 Change-Id: I850088abdf815c0c65a05aa2a7dfd9445aa688f6 --- resources/common/mixins.less | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/resources/common/mixins.less b/resources/common/mixins.less index c3eae1ebf..9c1c1304e 100644 --- a/resources/common/mixins.less +++ b/resources/common/mixins.less @@ -8,8 +8,14 @@ background: url( ../common/images/arrow-down.svg ) 100% 50% no-repeat; width: unit( 16 / @font-size-tabs / @font-size-browser, em ); height: unit( 16 / @font-size-tabs / @font-size-browser, em ); - // https://phabricator.wikimedia.org/T319070#8284272 - margin-left: -1px; + + // FIXME: This can be folded into the main mixin as soon as wgVectorVisualEnhancementNext + // is default. This rule should not apply to the current master as is part of a larger + // set of changes that must go out together. + .vector-feature-visual-enhancement-next-enabled & { + // https://phabricator.wikimedia.org/T319070#8284272 + margin-left: -1px; + } } .mixin-vector-dropdown-menu-item() {