compose_banners: Add '.highlighted-element' to <b> in compose banners.

This commit adds 'highlighted-element' class to <b> tags in
the following compose banners:
* jump_to_sent_message_conversation_banner
* stream_does_not_exist_error
* unknown_zoom_user_error
* channel wildcard_mention_not_allowed_error
* topic wildcard_mention_not_allowed_error

'highlighted-element' class sets the 'font-weight: 600',
replacing the default of 700.
This commit is contained in:
Prakhar Pratyush
2025-08-05 02:23:09 +05:30
committed by Tim Abbott
parent 8248ef8de7
commit 2005e5f616
4 changed files with 17 additions and 5 deletions

View File

@@ -1,5 +1,9 @@
{{#> compose_banner . }} {{#> compose_banner . }}
<p class="banner_message"> <p class="banner_message">
{{#tr}}Viewing the conversation where you sent your message. To go back, use the <b>back</b> button in your browser or desktop app.{{/tr}} {{#tr}}
Viewing the conversation where you sent your message. To go back, use the <z-highlight>back</z-highlight>
button in your browser or desktop app.
{{#*inline "z-highlight"}}<b class="highlighted-element">{{> @partial-block}}</b>{{/inline}}
{{/tr}}
</p> </p>
{{/compose_banner}} {{/compose_banner}}

View File

@@ -1,9 +1,10 @@
{{#> compose_banner . }} {{#> compose_banner . }}
<p class="banner_message"> <p class="banner_message">
{{#tr}} {{#tr}}
The channel <b>#{channel_name}</b> does not exist. Manage your subscriptions The channel <z-highlight>#{channel_name}</z-highlight> does not exist. Manage your subscriptions
<z-link>on your Channels page</z-link>. <z-link>on your Channels page</z-link>.
{{#*inline "z-link"}}<a href='#channels/all'>{{> @partial-block}}</a>{{/inline}} {{#*inline "z-link"}}<a href='#channels/all'>{{> @partial-block}}</a>{{/inline}}
{{#*inline "z-highlight"}}<b class="highlighted-element">{{> @partial-block}}</b>{{/inline}}
{{/tr}} {{/tr}}
</p> </p>
{{/compose_banner}} {{/compose_banner}}

View File

@@ -1,7 +1,8 @@
{{#> compose_banner . }} {{#> compose_banner . }}
<p class="banner_message"> <p class="banner_message">
{{#tr}} {{#tr}}
Your Zulip account email (<b>{email}</b>) is not linked to this organization's Zoom account. Your Zulip account email (<z-highlight>{email}</z-highlight>) is not linked to this organization's Zoom account.
{{#*inline "z-highlight"}}<b class="highlighted-element">{{> @partial-block}}</b>{{/inline}}
{{/tr}} {{/tr}}
</p> </p>
{{/compose_banner}} {{/compose_banner}}

View File

@@ -1,9 +1,15 @@
{{#> compose_banner . }} {{#> compose_banner . }}
<p class="banner_message"> <p class="banner_message">
{{#if wildcard_mention_string}} {{#if wildcard_mention_string}}
{{#tr}}You do not have permission to use <b>@{wildcard_mention_string}</b> mentions in this channel.{{/tr}} {{#tr}}
You do not have permission to use <z-highlight>@{wildcard_mention_string}</z-highlight> mentions in this channel.
{{#*inline "z-highlight"}}<b class="highlighted-element">{{> @partial-block}}</b>{{/inline}}
{{/tr}}
{{else}} {{else}}
{{#tr}}You do not have permission to use <b>@topic</b> mentions in this topic.{{/tr}} {{#tr}}
You do not have permission to use <z-highlight>@topic</z-highlight> mentions in this topic.
{{#*inline "z-highlight"}}<b class="highlighted-element">{{> @partial-block}}</b>{{/inline}}
{{/tr}}
{{/if}} {{/if}}
</p> </p>
{{/compose_banner}} {{/compose_banner}}