From a37cea2c5f6886f9e028d9bedcf271b8aeb52311 Mon Sep 17 00:00:00 2001 From: Prakhar Pratyush Date: Tue, 5 Aug 2025 01:30:05 +0530 Subject: [PATCH] confirm_dialog: Add highlighted-element class to in confirm dialogs. This commit adds 'highlighted-element' class to tags in the following confirm dialogs: * delete topic * mute user * join user group 'highlighted-element' class sets the 'font-weight: 600', replacing the default of 700. --- web/templates/confirm_dialog/confirm_delete_topic.hbs | 2 +- .../confirm_dialog/confirm_join_group_direct_member.hbs | 2 +- web/templates/confirm_dialog/confirm_mute_user.hbs | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/web/templates/confirm_dialog/confirm_delete_topic.hbs b/web/templates/confirm_dialog/confirm_delete_topic.hbs index c13c7da0df..f24b3d317e 100644 --- a/web/templates/confirm_dialog/confirm_delete_topic.hbs +++ b/web/templates/confirm_dialog/confirm_delete_topic.hbs @@ -4,6 +4,6 @@

{{#tr}} Are you sure you want to permanently delete ? - {{#*inline "z-topic-display-name"}}{{topic_display_name}}{{/inline}} + {{#*inline "z-topic-display-name"}}{{topic_display_name}}{{/inline}} {{/tr}}

diff --git a/web/templates/confirm_dialog/confirm_join_group_direct_member.hbs b/web/templates/confirm_dialog/confirm_join_group_direct_member.hbs index 2e57d63621..1638c82068 100644 --- a/web/templates/confirm_dialog/confirm_join_group_direct_member.hbs +++ b/web/templates/confirm_dialog/confirm_join_group_direct_member.hbs @@ -1,4 +1,4 @@

- {{t "You are already a member of this group because you are a member of a subgroup"}} ({{associated_subgroup_names}}). + {{t "You are already a member of this group because you are a member of a subgroup"}} ({{associated_subgroup_names}}). {{t "Are you sure you want to join it directly as well?" }}

diff --git a/web/templates/confirm_dialog/confirm_mute_user.hbs b/web/templates/confirm_dialog/confirm_mute_user.hbs index 72d3f65abf..1cb5b2ea13 100644 --- a/web/templates/confirm_dialog/confirm_mute_user.hbs +++ b/web/templates/confirm_dialog/confirm_mute_user.hbs @@ -1,5 +1,6 @@

{{#tr}} - Are you sure you want to mute {user_name}? Messages sent by muted users will never trigger notifications, will be marked as read, and will be hidden. + Are you sure you want to mute {user_name}? Messages sent by muted users will never trigger notifications, will be marked as read, and will be hidden. + {{#*inline "z-highlight"}}{{> @partial-block}}{{/inline}} {{/tr}}