Revert "Use Codex styles for buttons in language overlay"
This reverts commit d29050d080.
Reason for revert: I had mistakenly assumed the @wikimedia/codex
module was loaded on clicking the language button. It appears to
be added on page load.
Given T248718 it's still unclear what our policy on loading
@wikimedia/codex on page load is and given several people are out
I think it would be better to attempt this again next week, possibly
delaying further if needed.
Bug: T353071
Bug: T248718
Change-Id: I09334a1faec06a7400e61013ddda374156bf5d72
This commit is contained in:
@@ -190,7 +190,7 @@
|
||||
this.compactList[ language ].parentNode.style.display = '';
|
||||
}
|
||||
|
||||
mw.loader.using( '@wikimedia/codex' ).then( function () {
|
||||
mw.loader.using( 'mediawiki.ui.button' ).then( function () {
|
||||
this.addTrigger();
|
||||
}.bind( this ) );
|
||||
|
||||
@@ -330,7 +330,7 @@
|
||||
CompactInterlanguageList.prototype.addTrigger = function () {
|
||||
var trigger = document.createElement( 'button' );
|
||||
// TODO: Should we have a different class name where the CLS styles are attached?
|
||||
trigger.className = 'mw-interlanguage-selector cdx-button';
|
||||
trigger.className = 'mw-interlanguage-selector mw-ui-button';
|
||||
trigger.title = mw.message( 'ext-uls-compact-link-info' ).plain();
|
||||
// Use text() because the message needs {{PLURAL:}}
|
||||
trigger.textContent = mw.message(
|
||||
|
||||
Reference in New Issue
Block a user