From cf672ad939419d432825cf344103f76218537866 Mon Sep 17 00:00:00 2001 From: Sayam Samal Date: Wed, 13 Nov 2024 17:43:51 +0530 Subject: [PATCH] modal: Rename modal__btn -> modal__button. This commit is a part of the efforts to rename btn-related classes and variables to align with Zulip's no-abbreviations policy and streamline the search results. --- templates/corporate/billing/billing.html | 28 +++++++++---------- templates/corporate/billing/upgrade.html | 4 +-- ...change_email_address_visibility_modal.html | 4 +-- templates/zerver/development/email_log.html | 4 +-- web/src/dialog_widget.ts | 4 +-- web/styles/modal.css | 6 ++-- web/templates/dialog_widget.hbs | 4 +-- web/templates/login_to_access.hbs | 4 +-- web/templates/profile_access_error_modal.hbs | 2 +- web/templates/settings/api_key_modal.hbs | 6 ++-- web/templates/user_profile_modal.hbs | 4 +-- 11 files changed, 35 insertions(+), 35 deletions(-) diff --git a/templates/corporate/billing/billing.html b/templates/corporate/billing/billing.html index 6915814d03..3f3d572b82 100644 --- a/templates/corporate/billing/billing.html +++ b/templates/corporate/billing/billing.html @@ -436,8 +436,8 @@

@@ -469,8 +469,8 @@

@@ -498,8 +498,8 @@

@@ -524,8 +524,8 @@

@@ -552,8 +552,8 @@

@@ -580,8 +580,8 @@

@@ -617,8 +617,8 @@

diff --git a/templates/corporate/billing/upgrade.html b/templates/corporate/billing/upgrade.html index dfa22453c7..ed178ef46c 100644 --- a/templates/corporate/billing/upgrade.html +++ b/templates/corporate/billing/upgrade.html @@ -354,8 +354,8 @@

diff --git a/templates/zerver/development/email_log.html b/templates/zerver/development/email_log.html index 77e4301ee3..a439257151 100644 --- a/templates/zerver/development/email_log.html +++ b/templates/zerver/development/email_log.html @@ -61,8 +61,8 @@ diff --git a/web/src/dialog_widget.ts b/web/src/dialog_widget.ts index 97217fd579..a751c5f381 100644 --- a/web/src/dialog_widget.ts +++ b/web/src/dialog_widget.ts @@ -90,7 +90,7 @@ type RequestOpts = { export function hide_dialog_spinner(): void { const dialog_widget_selector = current_dialog_widget_selector(); const $spinner = $(`${dialog_widget_selector} .modal__spinner`); - $(`${dialog_widget_selector} .modal__btn`).prop("disabled", false); + $(`${dialog_widget_selector} .modal__button`).prop("disabled", false); loading.hide_spinner($(".dialog_submit_button"), $spinner); } @@ -98,7 +98,7 @@ export function hide_dialog_spinner(): void { export function show_dialog_spinner(): void { const dialog_widget_selector = current_dialog_widget_selector(); // Disable both the buttons. - $(`${dialog_widget_selector} .modal__btn`).prop("disabled", true); + $(`${dialog_widget_selector} .modal__button`).prop("disabled", true); const $spinner = $(`${dialog_widget_selector} .modal__spinner`); diff --git a/web/styles/modal.css b/web/styles/modal.css index f2a8043542..9a41f0e9fd 100644 --- a/web/styles/modal.css +++ b/web/styles/modal.css @@ -111,7 +111,7 @@ } } -.modal__btn { +.modal__button { /* We need the backup value for billing related html files where this variable is not defined. */ font-size: var(--base-font-size-px, 14px); @@ -139,8 +139,8 @@ } } -.modal__btn:focus, -.modal__btn:hover { +.modal__button:focus, +.modal__button:hover { transform: scale(1.05); /* The extremely subtle 1.05 scale can cause a gap to appear between the outline and diff --git a/web/templates/dialog_widget.hbs b/web/templates/dialog_widget.hbs index ecba618cb4..7b80cd8ccd 100644 --- a/web/templates/dialog_widget.hbs +++ b/web/templates/dialog_widget.hbs @@ -16,10 +16,10 @@