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:
Joelute
2023-05-15 13:57:31 -04:00
committed by Tim Abbott
parent 1cbff7094b
commit 80ace5c789
9 changed files with 23 additions and 23 deletions

View File

@@ -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();
});