confirm_dialog: Add highlighted-element class to <b> in confirm dialogs.

This commit adds 'highlighted-element' class to <b> 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.
This commit is contained in:
Prakhar Pratyush
2025-08-05 01:30:05 +05:30
committed by Tim Abbott
parent 9eda1f11ca
commit a37cea2c5f
3 changed files with 4 additions and 3 deletions

View File

@@ -4,6 +4,6 @@
<p class="white-space-preserve-wrap"> <p class="white-space-preserve-wrap">
{{#tr}} {{#tr}}
Are you sure you want to permanently delete <z-topic-display-name></z-topic-display-name>? Are you sure you want to permanently delete <z-topic-display-name></z-topic-display-name>?
{{#*inline "z-topic-display-name"}}<span {{#if is_empty_string_topic}}class="empty-topic-display"{{/if}}><b>{{topic_display_name}}</b></span>{{/inline}} {{#*inline "z-topic-display-name"}}<span {{#if is_empty_string_topic}}class="empty-topic-display"{{/if}}><b class="highlighted-element">{{topic_display_name}}</b></span>{{/inline}}
{{/tr}} {{/tr}}
</p> </p>

View File

@@ -1,4 +1,4 @@
<p> <p>
{{t "You are already a member of this group because you are a member of a subgroup"}} (<b>{{associated_subgroup_names}}</b>). {{t "You are already a member of this group because you are a member of a subgroup"}} (<b class="highlighted-element">{{associated_subgroup_names}}</b>).
{{t "Are you sure you want to join it directly as well?" }} {{t "Are you sure you want to join it directly as well?" }}
</p> </p>

View File

@@ -1,5 +1,6 @@
<p> <p>
{{#tr}} {{#tr}}
Are you sure you want to mute <b>{user_name}</b>? 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 <z-highlight>{user_name}</z-highlight>? Messages sent by muted users will never trigger notifications, will be marked as read, and will be hidden.
{{#*inline "z-highlight"}}<b class="highlighted-element">{{> @partial-block}}</b>{{/inline}}
{{/tr}} {{/tr}}
</p> </p>