Merge "Scope ULS styles to when language button is in header"
This commit is contained in:
commit
107abe79a0
|
@ -560,6 +560,11 @@ class Hooks {
|
||||||
) ) {
|
) ) {
|
||||||
$bodyAttrs['class'] .= ' skin-vector-disable-max-width';
|
$bodyAttrs['class'] .= ' skin-vector-disable-max-width';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$featureManager = VectorServices::getFeatureManager();
|
||||||
|
if ( $featureManager->isFeatureEnabled( Constants::FEATURE_LANGUAGE_IN_MAIN_PAGE_HEADER ) ) {
|
||||||
|
$bodyAttrs['class'] .= ' vector-language-in-header-enabled';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2,7 +2,10 @@
|
||||||
@import '../../common/variables.less';
|
@import '../../common/variables.less';
|
||||||
@import 'mediawiki.mixins.less';
|
@import 'mediawiki.mixins.less';
|
||||||
|
|
||||||
.mw-portlet-lang {
|
// TODO: `#p-lang-btn` Can be removed after Iebacb6a7bf3412a6ee76eb5c9fdb9471c02dd16c
|
||||||
|
// has been in prod for 5 days.
|
||||||
|
#p-lang-btn,
|
||||||
|
.vector-language-in-header-enabled .mw-portlet-lang {
|
||||||
// FIXME [review whether margin-top is needed] center vertically in heading.
|
// FIXME [review whether margin-top is needed] center vertically in heading.
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
.box-sizing( border-box );
|
.box-sizing( border-box );
|
||||||
|
|
Loading…
Reference in a new issue