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.

drodpown: Do not use fa-ban icon for disabled option.

Sahil Batrafeaaf9ff03dc
diff --git a/web/shared/icons/deactivated-circle.svg b/web/shared/icons/deactivated-circle.svg
new file mode 100644
index 00000000000..41eef7fed05
--- /dev/null
+++ b/web/shared/icons/deactivated-circle.svg
@@ -0,0 +1,4 @@
+<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
+ <path
+ d="m 2.3431459,2.3431458 a 7.9999996,7.9999996 0 0 0 0,11.3137082 7.9999996,7.9999996 0 0 0 11.3137081,0 7.9999996,7.9999996 0 0 0 0,-11.3137082 7.9999996,7.9999996 0 0 0 -11.3137081,0 z M 3.6287946,3.6287945 A 6.1818179,6.1818179 0 0 1 11.529507,2.9277144 L 2.9337411,11.52348 A 6.1818179,6.1818179 0 0 1 3.6287946,3.6287945 Z M 4.4765193,13.066259 13.066259,4.4765192 a 6.1818179,6.1818179 0 0 1 -0.695054,7.8946858 6.1818179,6.1818179 0 0 1 -7.8946857,0.695054 z"/>
+</svg>
diff --git a/web/styles/app_components.css b/web/styles/app_components.css
index f93c778871b..5843fb398dc 100644
--- a/web/styles/app_components.css
+++ b/web/styles/app_components.css
@@ -1163,8 +1163,6 @@ div.overlay .flex.overlay-content > .overlay-container,
.setting-disabled-option-icon {
align-self: center;
- /* Values set to match text alignment in stream dropdown. */
- padding-right: 5px;
}
}
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 3b8bf6415d9..eaa1c1ce076 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -2241,7 +2241,8 @@ body:not(.spectator-view) {
vertically centered properly. */
line-height: 1.214;
- .channel-privacy-type-icon {
+ .channel-privacy-type-icon,
+ .zulip-icon-deactivated-circle {
grid-area: privacy-icon;
line-height: 1.214;
font-size: 0.93em;
diff --git a/web/templates/dropdown_list.hbs b/web/templates/dropdown_list.hbs
index f918051814b..af493da295a 100644
--- a/web/templates/dropdown_list.hbs
+++ b/web/templates/dropdown_list.hbs
@@ -31,7 +31,7 @@
<i class="zulip-icon zulip-icon-users channel-privacy-type-icon"></i> <span class="decorated-dm-name">{{name}}</span>
{{else if is_setting_disabled}}
{{#if show_disabled_icon}}
- <i class="setting-disabled-option-icon fa fa-ban" aria-hidden="true"></i>
+ <i class="setting-disabled-option-icon zulip-icon zulip-icon-deactivated-circle" aria-hidden="true"></i>
{{/if}}
{{#if show_disabled_option_name}}
<span class="setting-disabled-option-text dropdown-list-text-neutral">{{name}}</span>