Merge "Address some code FIXMEs"

This commit is contained in:
jenkins-bot 2022-03-21 21:15:49 +00:00 committed by Gerrit Code Review
commit eb0e05dff1
6 changed files with 11 additions and 26 deletions

View file

@ -126,8 +126,7 @@ class Hooks {
}
// Tell the `mediawiki.page.ready` module not to wire up search.
// This allows us to use $wgVectorUseWvuiSearch to decide to load
// the historic jquery autocomplete search or the new Vue implementation.
// This allows us to use the new Vue implementation.
// ResourceLoaderContext has no knowledge of legacy / modern Vector
// and from its point of view they are the same thing.
// Please see the modules `skins.vector.js` and `skins.vector.legacy.js`

View file

@ -1,8 +1,4 @@
/** See Vector\Hooks::getVectorResourceLoaderConfig */
interface VectorResourceLoaderVirtualConfig {
wgVectorSearchHost: string;
/**
* The name of the ResourceLoader module that contains search.
*/
wgVectorUseWvuiSearch: boolean
}

View file

@ -1,14 +1,11 @@
@import '../variables.less';
// FIXME: Is specific `.mw-body` even needed? Does `.mw-indicators` exist outside?
.mw-body {
.mw-indicators {
font-size: @font-size-base;
line-height: @line-height-base;
position: relative;
}
.mw-indicator {
display: inline-block;
}
.mw-indicators {
font-size: @font-size-base;
line-height: @line-height-base;
position: relative;
}
.mw-indicator {
display: inline-block;
}

View file

@ -2,8 +2,7 @@
@import '../../common/variables.less';
@import 'mediawiki.mixins.less';
// TODO: `#p-lang-btn` Can be changed to `.mw-portlet-lang` when languages-in-header is the default.
#p-lang-btn {
.mw-portlet-lang {
// FIXME [review whether margin-top is needed] center vertically in heading.
margin-top: 2px;
.box-sizing( border-box );
@ -24,8 +23,6 @@
// Remove opacity on language button (it applies to more menu because of label color).
opacity: 1;
// FIXME: `span:not` rule can be removed when cache has cleared.
span:not( .mw-ui-icon ),
.vector-menu-heading-label {
// Special treatment for language button, based on Vector font-size
font-size: @font-size-base;

View file

@ -42,9 +42,6 @@
}
// Only apply the following WVUI-related rules to clients who have js enabled.
// TODO: .skin-vector-search-vue class can be removed when $wgVectorUseWvuiSearch is no longer supported
// OR .vector-search-box-vue is in cached HTML.
.client-js .skin-vector-search-vue,
.client-js .vector-search-box-vue {
// Derived from @size-search-figure in WVUI
// https://gerrit.wikimedia.org/r/plugins/gitiles/wvui/+/e32b54f3b8d1118b6a25cdc46b5638d6d048533e/src/themes/wikimedia-ui.less#21

View file

@ -111,8 +111,7 @@ body {
.mixin-clearfix();
}
// TODO: Can be changed to `.mw-body .mw-portlet-lang` when language-in-header feature is default.
.mw-body #p-lang-btn {
.mw-body .mw-portlet-lang {
float: right;
}