Address some code FIXMEs

- Remove references to the removed wgVectorUseWvuiSearch
configuration
- Remove mw-body qualifier on Indicators component.
- Drops some cache related FIXMEs

Change-Id: I6823b9c5bf19a067b56badf29f874a7127867a09
This commit is contained in:
Jon Robson 2022-03-14 11:49:23 -07:00 committed by Jdlrobson
parent 9c6d3f7b7b
commit b86dbc756c
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;
}