mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
compose_banner: Update classnames to main-view-banner-close-button.
Previously, we have duplicate stylings in compose banner and unread banner. This is rather messy and creates a lot of styling rules. We should define an abstraction for them. This change will rename compose_banner_close_button to main-view-banner-close-button.
This commit is contained in:
@@ -591,7 +591,7 @@ export function initialize() {
|
||||
|
||||
for (const classname of Object.values(compose_banner.CLASSNAMES)) {
|
||||
const classname_selector = `.${CSS.escape(classname)}`;
|
||||
$("body").on("click", `${classname_selector} .compose_banner_close_button`, (event) => {
|
||||
$("body").on("click", `${classname_selector} .main-view-banner-close-button`, (event) => {
|
||||
event.preventDefault();
|
||||
$(event.target).parents(classname_selector).remove();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user