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.

css: Change left sidebar outline for stream list.

Pratik Chandadf9baf320209
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index 011391f2070..3146bb9c78b 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -369,6 +369,16 @@
background-color: var(--color-background-sidebar-action-heading-hover);
}
+ &:has(a.left-sidebar-navigation-label-container:focus-visible) {
+ outline: 2px solid var(--color-outline-focus);
+ outline-offset: -2px;
+ background-color: var(--color-background-hover-narrow-filter);
+ }
+
+ .left-sidebar-navigation-label-container:focus {
+ outline: none;
+ }
+
&.active-filter,
&.top-left-active-filter,
&.active-sub-filter {
@@ -378,11 +388,17 @@
}
}
+#stream_filters .narrow-filter:has(a.stream-name:focus-visible),
#stream_filters .narrow-filter.highlighted_stream {
&.active-filter > .bottom_left_row {
background-color: var(--color-background-hover-narrow-filter);
}
+ & > .bottom_left_row {
+ outline: 2px solid var(--color-outline-focus);
+ outline-offset: -2px;
+ }
+
&.active-filter .topic-list .bottom_left_row {
background-color: var(--color-background-active-narrow-filter);
}
@@ -392,6 +408,28 @@
}
}
+#stream_filters
+ .narrow-filter
+ .topic-list
+ .bottom_left_row:has(a.sidebar-topic-name:focus-visible),
+#direct-messages-list
+ .dm-list
+ .bottom_left_row:has(a.conversation-partners:focus-visible) {
+ outline: 2px solid var(--color-outline-focus);
+ outline-offset: -2px;
+ background-color: var(--color-background-hover-narrow-filter);
+}
+
+#stream_filters .narrow-filter,
+#direct-messages-list .bottom_left_row {
+ a.stream-name:focus,
+ a.sidebar-topic-name:focus,
+ a.conversation-partners:focus {
+ outline: none;
+ text-decoration: none;
+ }
+}
+
#subscribe-to-more-streams,
#login-to-more-streams {
/* --left-sidebar-bottom-scrolling-buffer is to prevent the row from