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.

recent_topics: Show a line below the focused element.

Aman Agrawalfc31eaa356dc
diff --git a/static/styles/night_mode.scss b/static/styles/night_mode.scss
index e22802a436c..4f7e42e23fd 100644
--- a/static/styles/night_mode.scss
+++ b/static/styles/night_mode.scss
@@ -417,6 +417,11 @@ on a dark background, and don't change the dark labels dark either. */
background-color: hsl(211, 29%, 14%);
border-color: hsl(0, 0%, 0%);
color: hsl(0, 0%, 100%);
+
+ &:focus {
+ background-color: hsla(0, 0%, 0%, 0.5) !important;
+ outline: 0;
+ }
}
.btn-recent-selected,
diff --git a/static/styles/recent_topics.scss b/static/styles/recent_topics.scss
index 4ea7f347924..2cc0d00d98f 100644
--- a/static/styles/recent_topics.scss
+++ b/static/styles/recent_topics.scss
@@ -66,6 +66,15 @@
.recent_topics_focusable {
display: inline-block;
+
+ & > * {
+ outline: 0px;
+ }
+
+ &:focus-within {
+ /* Use the same color as the message feed pointer */
+ box-shadow: 0 3px 0 hsl(215, 47%, 50%);
+ }
}
a {
@@ -122,6 +131,11 @@
.btn-recent-filters {
border-radius: 40px;
margin: 0 5px 10px 0;
+
+ &:focus {
+ background-color: hsl(0, 0%, 80%);
+ outline: 0;
+ }
}
.btn-recent-selected {