From 36eda30e0f6437d5aa11d8d1ecef06b24e2f3905 Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Thu, 4 Feb 2021 12:25:20 -0800 Subject: [PATCH] Language button should use a new id to identify itself This breaks existing integrations with extensions which will need to be revisited as part of this redesign. Change-Id: Iabf627e6926d4574f27448400d76210386ebdaa2 --- includes/SkinVector.php | 1 + resources/skins.vector.styles/layout-default.less | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/SkinVector.php b/includes/SkinVector.php index a99fdcc2..5aa50f86 100644 --- a/includes/SkinVector.php +++ b/includes/SkinVector.php @@ -237,6 +237,7 @@ class SkinVector extends SkinMustache { count( $this->getLanguages() ) )->parse(); $portletData['icon'] = 'language'; + $portletData['id'] = 'p-lang-btn'; } $class = $portletData['class']; $portletData['class'] = trim( "$class $extraClasses[$type]" ); diff --git a/resources/skins.vector.styles/layout-default.less b/resources/skins.vector.styles/layout-default.less index 474c1572..7d198d84 100644 --- a/resources/skins.vector.styles/layout-default.less +++ b/resources/skins.vector.styles/layout-default.less @@ -81,7 +81,7 @@ body { .mw-body-header { .mixin-clearfix(); - #p-lang { + #p-lang-btn { float: right; } }