From e3eb0157e4730d8da611c345c17e1d734fab0bfb Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 17 Nov 2026 14:46:20 -0500 Subject: [PATCH] Bug 2094200 - [MENTIONS] Make the banner bigger for needinfo mentions so it is more noticable --- js/text-editor.js | 4 +++- skins/standard/text-editor.css | 13 +++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/js/text-editor.js b/js/text-editor.js index 5fb48a7a16..c63213c4d8 100644 --- a/js/text-editor.js +++ b/js/text-editor.js @@ -927,7 +927,9 @@ Bugzilla.CommentEditor = class CommentEditor extends Bugzilla.TextEditor { const lines = []; if (needinfo.length) { - lines.push(`${this.str.mention_needinfo.htmlEncode()} ${needinfo.join(', ')}`); + const heading = `${this.str.mention_needinfo.htmlEncode()}`; + + lines.push(`${heading} ${needinfo.join(', ')}`); } if (ccOnly.length) { diff --git a/skins/standard/text-editor.css b/skins/standard/text-editor.css index 2adfe2d1ca..b4a1b25cda 100644 --- a/skins/standard/text-editor.css +++ b/skins/standard/text-editor.css @@ -95,18 +95,23 @@ /* Live region: kept in the document while empty so screen readers announce updates */ .text-editor .mention-warning:not(:empty) { - margin: 4px 0 0; - border-left: 4px solid var(--warning-message-border-color); + margin: 8px 0 0; + border: 1px solid var(--warning-message-border-color); + border-left-width: 6px; border-radius: 4px; - padding: 4px 8px; + padding: 8px 12px; background-color: var(--warning-message-background-color); - font-size: var(--font-size-small); + font-size: var(--font-size-medium); } .text-editor .mention-warning p { margin: 0; } +.text-editor .mention-warning p + p { + margin-top: 4px; +} + .text-editor footer:not([hidden]) { padding: 8px 4px; font-size: var(--font-size-small);