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.

settings: Use 'zulip-icon-close' instead of 'fa-remove' in search box.

Harsh4bf1ce7c5eac
diff --git a/web/styles/app_components.css b/web/styles/app_components.css
index 9056f806ab1..ef2e66b86c7 100644
--- a/web/styles/app_components.css
+++ b/web/styles/app_components.css
@@ -426,6 +426,33 @@ input.settings_text_input {
}
}
+/* This is new clear_search_button style, it'll replace all
+old_clear_search_button for consistency. */
+.clear_search_button {
+ grid-area: 1 / 2 / 2 / 3;
+ padding: 0;
+ background: none;
+ color: var(--color-icons-inbox);
+ opacity: 0.4;
+ display: grid;
+ border: none;
+
+ &:hover {
+ opacity: 1;
+ }
+
+ &:focus,
+ &:focus-visible,
+ &:active {
+ box-shadow: none;
+ outline: none;
+ }
+
+ .zulip-icon-close {
+ align-self: center;
+ }
+}
+
.grey-box {
margin: 0;
padding: 5px 10px;
diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.css
index 127ac189c17..50dcdbe78f0 100644
--- a/web/styles/subscriptions.css
+++ b/web/styles/subscriptions.css
@@ -513,11 +513,8 @@ h4.user_group_setting_subsection_title {
#search_stream_name,
#search_group_name {
- padding: 3px 5px;
- display: inline-block;
- border-radius: 5px;
box-shadow: none;
- padding-right: 20px;
+ padding-right: 28px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
diff --git a/web/templates/stream_settings/stream_settings_overlay.hbs b/web/templates/stream_settings/stream_settings_overlay.hbs
index e3ef0e119e0..eb1e3a1034b 100644
--- a/web/templates/stream_settings/stream_settings_overlay.hbs
+++ b/web/templates/stream_settings/stream_settings_overlay.hbs
@@ -22,8 +22,8 @@
<div class="input-append stream_name_search_section" id="stream_filter">
<input type="text" name="stream_name" id="search_stream_name" class="filter_text_input" autocomplete="off"
placeholder="{{t 'Filter channels' }}" value=""/>
- <button type="button" class="bootstrap-btn old_clear_search_button" id="clear_search_stream_name">
- <i class="fa fa-remove" aria-hidden="true"></i>
+ <button type="button" class="clear_search_button" id="clear_search_stream_name">
+ <i class="zulip-icon zulip-icon-close" aria-hidden="true"></i>
</button>
</div>
<div class="no-streams-to-show">
diff --git a/web/templates/user_group_settings/user_group_settings_overlay.hbs b/web/templates/user_group_settings/user_group_settings_overlay.hbs
index 6d7ca5a0e82..3fc6547e261 100644
--- a/web/templates/user_group_settings/user_group_settings_overlay.hbs
+++ b/web/templates/user_group_settings/user_group_settings_overlay.hbs
@@ -22,8 +22,8 @@
<div class="input-append group_name_search_section" id="group_filter">
<input type="text" name="group_name" id="search_group_name" class="filter_text_input" autocomplete="off"
placeholder="{{t 'Filter groups' }}" value=""/>
- <button type="button" class="bootstrap-btn old_clear_search_button" id="clear_search_group_name">
- <i class="fa fa-remove" aria-hidden="true"></i>
+ <button type="button" class="clear_search_button" id="clear_search_group_name">
+ <i class="zulip-icon zulip-icon-close" aria-hidden="true"></i>
</button>
</div>
<div class="no-groups-to-show">