Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

decorated_channels: Rename privacy-icon class.

Karl Stolley3671a6a39c5e
diff --git a/web/src/compose_recipient.ts b/web/src/compose_recipient.ts
index 464565c7d33..5fd05c6ed43 100644
--- a/web/src/compose_recipient.ts
+++ b/web/src/compose_recipient.ts
@@ -192,7 +192,7 @@ export function update_compose_for_message_type(opts: ComposeTriggeredOptions):
// it here.
const direct_message_label = $t({defaultMessage: "DM"});
$("#compose_select_recipient_widget .dropdown_widget_value").html(
- `<i class="zulip-icon zulip-icon-users stream-privacy-type-icon"></i> ${direct_message_label}`,
+ `<i class="zulip-icon zulip-icon-users channel-privacy-type-icon"></i> ${direct_message_label}`,
);
}
compose_banner.clear_errors();
diff --git a/web/styles/app_components.css b/web/styles/app_components.css
index 7770eff061e..7535ab131b4 100644
--- a/web/styles/app_components.css
+++ b/web/styles/app_components.css
@@ -893,7 +893,7 @@ input.settings_text_input {
}
}
-.stream-privacy-type-icon {
+.channel-privacy-type-icon {
position: relative;
top: 0.06rem;
padding-right: 1px;
diff --git a/web/styles/compose.css b/web/styles/compose.css
index 8bc25353abd..7dd4066a119 100644
--- a/web/styles/compose.css
+++ b/web/styles/compose.css
@@ -1541,7 +1541,7 @@ textarea.new_message_textarea {
white-space: nowrap;
color: var(--color-text-default);
- .stream-privacy-type-icon {
+ .channel-privacy-type-icon {
font-size: 0.9286em; /* 13px at 14px em */
width: 1em;
height: 1em;
diff --git a/web/styles/modal.css b/web/styles/modal.css
index f78e6cfad50..ea357e8faf9 100644
--- a/web/styles/modal.css
+++ b/web/styles/modal.css
@@ -59,7 +59,7 @@
overflow: hidden;
word-wrap: break-word;
- .stream-privacy-type-icon {
+ .channel-privacy-type-icon {
/* This pushes back on suspect styles
in app_components.css. A fuller fix
will require tracking down other
diff --git a/web/styles/popovers.css b/web/styles/popovers.css
index 9df7d7946b3..2d7d5f8a013 100644
--- a/web/styles/popovers.css
+++ b/web/styles/popovers.css
@@ -817,7 +817,7 @@ ul.popover-group-menu-member-list {
/* Grid defined in modal.css */
grid-area: heading;
- .stream-privacy-type-icon {
+ .channel-privacy-type-icon {
padding-left: 3px;
padding-right: 5px;
}
@@ -841,7 +841,7 @@ ul.popover-group-menu-member-list {
white-space: nowrap;
color: var(--color-text-default);
- .stream-privacy-type-icon {
+ .channel-privacy-type-icon {
/* 13px at 16px/1em */
font-size: 0.8125em;
/* 13px at 13px/1em */
diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.css
index 6ec646bd792..87df78cfdef 100644
--- a/web/styles/subscriptions.css
+++ b/web/styles/subscriptions.css
@@ -313,7 +313,7 @@ h4.user_group_setting_subsection_title {
line-height: 1.5;
display: inline;
- .stream-privacy-type-icon {
+ .channel-privacy-type-icon {
margin-right: 4px;
}
}
diff --git a/web/styles/tooltips.css b/web/styles/tooltips.css
index 0d20f0b4f79..7084c447f67 100644
--- a/web/styles/tooltips.css
+++ b/web/styles/tooltips.css
@@ -95,7 +95,7 @@
white-space: nowrap;
}
- .stream-privacy-type-icon {
+ .channel-privacy-type-icon {
width: 9px;
padding-left: 2px;
top: 0.5px;
diff --git a/web/styles/typeahead.css b/web/styles/typeahead.css
index c5b539d1bcf..160e4d626eb 100644
--- a/web/styles/typeahead.css
+++ b/web/styles/typeahead.css
@@ -168,7 +168,7 @@
align-items: baseline;
font-weight: 500;
- .stream-privacy-type-icon {
+ .channel-privacy-type-icon {
margin-right: 3px;
}
}
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 25b48360fbe..5111357d16b 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -2172,7 +2172,7 @@ body:not(.spectator-view) {
vertically centered properly. */
line-height: 1.214;
- .stream-privacy-type-icon {
+ .channel-privacy-type-icon {
line-height: 1.214;
font-size: 0.93em;
/* We set only the width so that flexbox
diff --git a/web/templates/dropdown_list.hbs b/web/templates/dropdown_list.hbs
index 4a6e8092423..37f0a55660c 100644
--- a/web/templates/dropdown_list.hbs
+++ b/web/templates/dropdown_list.hbs
@@ -24,7 +24,7 @@
{{#if stream}}
{{> inline_decorated_channel_name stream=stream show_colored_icon=true}}
{{else if is_direct_message}}
- <i class="zulip-icon zulip-icon-users stream-privacy-type-icon"></i> {{name}}
+ <i class="zulip-icon zulip-icon-users channel-privacy-type-icon"></i> {{name}}
{{else if is_setting_disabled}}
<span class="setting-disabled-option"><i class="setting-disabled-option-icon fa fa-ban" aria-hidden="true"></i>{{t "Disable" }}</span>
{{else}}
diff --git a/web/templates/inline_decorated_channel_name.hbs b/web/templates/inline_decorated_channel_name.hbs
index 9f943c19ea1..e3f24436ea6 100644
--- a/web/templates/inline_decorated_channel_name.hbs
+++ b/web/templates/inline_decorated_channel_name.hbs
@@ -1,10 +1,10 @@
{{! This controls whether the swatch next to streams in the left sidebar has a lock icon. }}
{{~#if stream.is_archived ~}}
-<i class="zulip-icon zulip-icon-archive stream-privacy-type-icon" {{#if show_colored_icon}}style="color: {{stream.color}}"{{/if}} aria-hidden="true"></i> {{stream.name ~}}
+<i class="zulip-icon zulip-icon-archive channel-privacy-type-icon" {{#if show_colored_icon}}style="color: {{stream.color}}"{{/if}} aria-hidden="true"></i> {{stream.name ~}}
{{~ else if stream.invite_only ~}}
-<i class="zulip-icon zulip-icon-lock stream-privacy-type-icon" {{#if show_colored_icon}}style="color: {{stream.color}}"{{/if}} aria-hidden="true"></i> {{stream.name ~}}
+<i class="zulip-icon zulip-icon-lock channel-privacy-type-icon" {{#if show_colored_icon}}style="color: {{stream.color}}"{{/if}} aria-hidden="true"></i> {{stream.name ~}}
{{~ else if stream.is_web_public ~}}
-<i class="zulip-icon zulip-icon-globe stream-privacy-type-icon" {{#if show_colored_icon}}style="color: {{stream.color}}"{{/if}} aria-hidden="true"></i> {{stream.name ~}}
+<i class="zulip-icon zulip-icon-globe channel-privacy-type-icon" {{#if show_colored_icon}}style="color: {{stream.color}}"{{/if}} aria-hidden="true"></i> {{stream.name ~}}
{{~ else ~}}
-<i class="zulip-icon zulip-icon-hashtag stream-privacy-type-icon" {{#if show_colored_icon}}style="color: {{stream.color}}"{{/if}} aria-hidden="true"></i> {{stream.name ~}}
+<i class="zulip-icon zulip-icon-hashtag channel-privacy-type-icon" {{#if show_colored_icon}}style="color: {{stream.color}}"{{/if}} aria-hidden="true"></i> {{stream.name ~}}
{{~/if~}}
diff --git a/web/templates/input_pill.hbs b/web/templates/input_pill.hbs
index bdfa1715e46..2652fdb60dd 100644
--- a/web/templates/input_pill.hbs
+++ b/web/templates/input_pill.hbs
@@ -9,11 +9,11 @@
<span class="pill-value">
{{#if has_stream}}
{{~#if stream.invite_only ~}}
- <i class="zulip-icon zulip-icon-lock stream-privacy-type-icon" aria-hidden="true"></i>
+ <i class="zulip-icon zulip-icon-lock channel-privacy-type-icon" aria-hidden="true"></i>
{{~ else if stream.is_web_public ~}}
- <i class="zulip-icon zulip-icon-globe stream-privacy-type-icon" aria-hidden="true"></i>
+ <i class="zulip-icon zulip-icon-globe channel-privacy-type-icon" aria-hidden="true"></i>
{{~ else ~}}
- <i class="zulip-icon zulip-icon-hashtag stream-privacy-type-icon" aria-hidden="true"></i>
+ <i class="zulip-icon zulip-icon-hashtag channel-privacy-type-icon" aria-hidden="true"></i>
{{~/if~}}
{{/if}}
{{#if is_empty_string_topic}}
diff --git a/web/tests/stream_pill.test.cjs b/web/tests/stream_pill.test.cjs
index e73e9f64b2b..0aefea55a8f 100644
--- a/web/tests/stream_pill.test.cjs
+++ b/web/tests/stream_pill.test.cjs
@@ -154,7 +154,7 @@ run_test("generate_pill_html", () => {
"<div class='pill 'data-stream-id=\"101\" tabindex=0>\n" +
' <span class="pill-label">\n' +
' <span class="pill-value">\n' +
- '<i class="zulip-icon zulip-icon-hashtag stream-privacy-type-icon" aria-hidden="true"></i> Denmark\n' +
+ '<i class="zulip-icon zulip-icon-hashtag channel-privacy-type-icon" aria-hidden="true"></i> Denmark\n' +
" </span></span>\n" +
' <div class="exit">\n' +
' <a role="button" class="zulip-icon zulip-icon-close pill-close-button"></a>\n' +