From a6a338c0f7acf2d5744aecdb2e43c7ff287310be Mon Sep 17 00:00:00 2001 From: NikG Date: Tue, 28 Mar 2023 19:11:16 +0300 Subject: [PATCH] ULS: Use quick actions icon inside page language selector Currently, inside the page language selector of multilingual wikis (like Commons), the user can access the language settings by clicking the display and input setting buttons that are provided at the bottom of the language selector. However, instead of these buttons, the quick actions trigger should be used instead for a consistent user experience. The trigger will only provide access to the language settings, and other quick action items won't have any effect in this case. Bug: T314021 Change-Id: Iaaf61c85518b4d3d44d4a92dbf5dc7fdb96282fa --- resources/css/ext.uls.interface.less | 4 + resources/js/ext.uls.interface.js | 105 ++++----------------------- 2 files changed, 20 insertions(+), 89 deletions(-) diff --git a/resources/css/ext.uls.interface.less b/resources/css/ext.uls.interface.less index 1d6fd848..b8c3e8c5 100644 --- a/resources/css/ext.uls.interface.less +++ b/resources/css/ext.uls.interface.less @@ -3,6 +3,10 @@ @import 'mediawiki.ui/variables.less'; #uls-settings-block { + // set default background color to #fcfcfc, to match ULS-LCD background color (inside jquery.uls.lcd.ss) + // TODO: There is no design token for this color. We should fix to use a design token here. + background-color: #fcfcfc; + &.uls-settings-block--vector-2022 { display: flex; justify-content: space-between; diff --git a/resources/js/ext.uls.interface.js b/resources/js/ext.uls.interface.js index 207a4b13..999b83b3 100644 --- a/resources/js/ext.uls.interface.js +++ b/resources/js/ext.uls.interface.js @@ -25,36 +25,6 @@ ActionsMenuItem = require( './ext.uls.actions.menu.item.js' ); require( './ext.uls.actions.menu.items.registry.js' ); - /** - * Construct the display settings link - * - * @return {jQuery} - */ - function displaySettings() { - return $( '