zulip/zulip

Migrate compose and message-edit banners to the modern banner component

开放

#39,794 创建于 2026年7月21日

 (17 条评论) (0 个反应) (1 位负责人)Python (7,339 个派生)batch import
area: composearea: compose (banners & validation)area: message-editinggood first issuehelp wantedin progress

仓库指标

星标
 (19,672 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

The compose box and message-edit banners still use the legacy .main-view-banner markup, instead of the modern banner component (web/src/banners.ts, viewable in the development environment at http://localhost:9991/devtools/banners/).

Because the legacy close button is an <a role="button" tabindex="0">, it takes focus on mouse clicks and shows a focus outline. That was worked around in #39759 with a :focus:not(:focus-visible) rule and a TODO pointing here; migrating would let us drop the workaround.

Note that the two components use different layout systems (flexbox vs. CSS grid, different padding, line height, and close button size), so this will change how the banners look worth confirming the intended design before implementing.

贡献者指南