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.

right_sidebar: Use common 'clear_search_button' for zulip-icon-close.

Harsh046f4687d002
diff --git a/web/styles/right_sidebar.css b/web/styles/right_sidebar.css
index be39c2df292..56c03c978ce 100644
--- a/web/styles/right_sidebar.css
+++ b/web/styles/right_sidebar.css
@@ -481,34 +481,11 @@ $user_status_emoji_width: 24px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
- /* Prevent text from colliding with #old_clear_search_button */
+ /* Prevent text from colliding with #clear_search_button */
padding-right: 28px;
height: var(--line-height-sidebar-row-prominent);
box-sizing: border-box;
}
-
- #clear_search_people_button {
- grid-area: 1 / 2 / 2 / 3;
- padding: 0;
- background: none;
- color: var(--color-text-clear-search-button);
- display: grid;
-
- &:hover {
- color: var(--color-text-clear-search-button-hover);
- }
-
- &:focus,
- &:focus-visible,
- &:active {
- box-shadow: none;
- outline: none;
- }
-
- .zulip-icon-close {
- align-self: center;
- }
- }
}
#buddy-list-menu-icon {
diff --git a/web/templates/right_sidebar.hbs b/web/templates/right_sidebar.hbs
index 0bd49adeec8..27fee07ebdd 100644
--- a/web/templates/right_sidebar.hbs
+++ b/web/templates/right_sidebar.hbs
@@ -4,7 +4,7 @@
<div id="userlist-header">
<div id="userlist-header-search">
<input class="user-list-filter home-page-input filter_text_input" type="text" autocomplete="off" placeholder="{{t 'Filter users' }}" />
- <button type="button" class="bootstrap-btn hidden" id="clear_search_people_button">
+ <button type="button" class="clear_search_button" id="clear_search_people_button">
<i class="zulip-icon zulip-icon-close" aria-hidden="true"></i>
</button>
</div>