From b0cf419f195ebb5fd453d50ae3190992eea51422 Mon Sep 17 00:00:00 2001 From: Jon Robson Date: Wed, 25 Sep 2024 14:33:52 -0700 Subject: [PATCH] Support modern message box markup The class mw-message-box-warning was replaced with cdx-message--warning. Change-Id: I6862aab8980e76372e8f5d974e37ee6f5358e22c --- modules/dt.init.less | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/dt.init.less b/modules/dt.init.less index f5f2b0303..2d31af752 100644 --- a/modules/dt.init.less +++ b/modules/dt.init.less @@ -655,12 +655,14 @@ h1, h2, h3, h4, h5, h6 { } .ext-discussiontools-init-replylink-open { + /* stylelint-disable selector-class-pattern */ .ext-discussiontools-emptystate, - .mw-body-content > .mw-message-box-warning { + .mw-body-content > .cdx-message--warning { // Top level warnings, such as "User account --- is not registered" will re-apppear // in the new topic tool, so we can hide the original. (T289354#7312789) display: none; } + /* stylelint-enable selector-class-pattern */ } .mw-mf.ext-discussiontools-emptystate-shown {