compose_banner: Update classnames to main-view-banner-action-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_action_button
to main-view-banner-action-button.
This commit is contained in:
Joelute
2023-05-15 15:58:45 -04:00
committed by Tim Abbott
parent 80ace5c789
commit f5a21d0e47
6 changed files with 17 additions and 15 deletions

View File

@@ -470,7 +470,9 @@ export function initialize() {
$("body").on(
"click",
`.${CSS.escape(compose_banner.CLASSNAMES.wildcard_warning)} .compose_banner_action_button`,
`.${CSS.escape(
compose_banner.CLASSNAMES.wildcard_warning,
)} .main-view-banner-action-button`,
(event) => {
event.preventDefault();
const {$banner_container, is_edit_input} = get_input_info(event);
@@ -497,7 +499,7 @@ export function initialize() {
)}`;
$("body").on(
"click",
`${user_not_subscribed_selector} .compose_banner_action_button`,
`${user_not_subscribed_selector} .main-view-banner-action-button`,
(event) => {
event.preventDefault();
@@ -513,7 +515,7 @@ export function initialize() {
$("body").on(
"click",
`.${CSS.escape(compose_banner.CLASSNAMES.topic_resolved)} .compose_banner_action_button`,
`.${CSS.escape(compose_banner.CLASSNAMES.topic_resolved)} .main-view-banner-action-button`,
(event) => {
event.preventDefault();
@@ -532,7 +534,7 @@ export function initialize() {
"click",
`.${CSS.escape(
compose_banner.CLASSNAMES.unmute_topic_notification,
)} .compose_banner_action_button`,
)} .main-view-banner-action-button`,
(event) => {
event.preventDefault();
@@ -554,7 +556,7 @@ export function initialize() {
"click",
`.${CSS.escape(
compose_banner.CLASSNAMES.recipient_not_subscribed,
)} .compose_banner_action_button`,
)} .main-view-banner-action-button`,
(event) => {
event.preventDefault();
const {$banner_container} = get_input_info(event);