From 56f75201206b1a13fbf8d0ea8bfade9813dce493 Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Thu, 28 May 2020 16:00:32 -0700 Subject: [PATCH] Hotfix: Cannot rename emptyPortlet to empty-portlet yet. Given the regression, we can't make this rename just yet. Restore the old class with the documentation block that should have been there before. We'll deal with this rename later. Bug: T253912 Change-Id: I0672b05bc3eb9564e1943ee8099bafb959dc474d --- resources/skins.vector.styles/Menu.less | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/resources/skins.vector.styles/Menu.less b/resources/skins.vector.styles/Menu.less index b0fc1f7df..f18e23791 100644 --- a/resources/skins.vector.styles/Menu.less +++ b/resources/skins.vector.styles/Menu.less @@ -2,9 +2,14 @@ @import 'mediawiki.mixins.less'; /* Hide empty portlets */ -// FIXME: Remove when cache cleared. -.emptyPortlet, -.vector-menu-empty { +// This class has special magical powers. It can be removed by +// mw.util.addPortletLink +// in core:resources/src/mediawiki.util/util.js +// When I93fb6c96df9f238d1c0281cb66512b135ca2afc2 has been merged +// and is deployed this line of CSS should be removed or replaced +// with the class ".vector-menu-empty" +// See T253912. +.emptyPortlet { display: none; }