Merge "Fix last modified bar icon change and search unStar-progressive"

This commit is contained in:
jenkins-bot 2021-11-01 23:10:31 +00:00 committed by Gerrit Code Review
commit ccf468ee1b
3 changed files with 17 additions and 3 deletions

View file

@ -21,7 +21,7 @@
},
{
"resourceModule": "skins.minerva.icons.wikimedia",
"maxSize": "0.8KB"
"maxSize": "1.0KB"
},
{
"resourceModule": "skins.minerva.mainMenu.icons",

View file

@ -6,6 +6,8 @@
* framework or upstreamed from MobileFrotend to core) should be and moved into ./setup.js
* @todo anything left should be moved to MobileFrontend extension and removed from here.
*/
var HISTORY_ICON_CLASS = 'mw-ui-icon-wikimedia-history-base20';
var HISTORY_ARROW_CLASS = 'mw-ui-icon-mf-expand-gray';
module.exports = function () {
var
// eslint-disable-next-line no-restricted-properties
@ -181,8 +183,12 @@ module.exports = function () {
if ( time.isRecent( delta ) ) {
$bar = $lastModifiedLink.closest( '.last-modified-bar' );
$bar.addClass( 'active' );
$bar.find( '.mw-ui-icon-wikimedia-history-base20' ).addClass( 'mw-ui-icon-wikimedia-history-invert' );
$bar.find( '.mw-ui-icon-mf-expand-gray' ).addClass( 'mw-ui-icon-mf-expand-invert' );
$bar.find( '.' + HISTORY_ICON_CLASS )
.addClass( HISTORY_ICON_CLASS.replace( '-base20', '-invert' ) )
.removeClass( HISTORY_ICON_CLASS );
$bar.find( '.' + HISTORY_ARROW_CLASS )
.addClass( HISTORY_ARROW_CLASS.replace( '-gray', '-invert' ) )
.removeClass( HISTORY_ARROW_CLASS );
}
$msg = $( '<span>' )

View file

@ -352,6 +352,14 @@
"useDataURI": false,
"defaultColor": "#54595d",
"variants": {
"progressive": {
"color": "#36c",
"global": true
},
"invert": {
"color": "#fff",
"global": true
},
"warning": {
"color": "#fc3",
"global": true