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.

styles: Make focus outline work reliably.

Gittenburg9648e64d238d
diff --git a/static/styles/night_mode.scss b/static/styles/night_mode.scss
index ad04220d19a..cb777a65921 100644
--- a/static/styles/night_mode.scss
+++ b/static/styles/night_mode.scss
@@ -964,6 +964,10 @@ on a dark background, and don't change the dark labels dark either. */
}
}
}
+
+ a:focus {
+ outline-color: hsl(0, 0%, 100%);
+ }
}
@supports (-moz-appearance: none) {
diff --git a/static/styles/zulip.scss b/static/styles/zulip.scss
index c6ebe2b13b0..348be478e02 100644
--- a/static/styles/zulip.scss
+++ b/static/styles/zulip.scss
@@ -379,6 +379,12 @@ label {
line-height: inherit;
}
+/* Bootstrap's focus outline uses -webkit-focus-ring-color which doesn't exist in Firefox */
+a:focus {
+ outline: 2px solid hsl(215, 47%, 50%);
+ // TODO: change solid to auto once the Chromium bug #1105822 is fixed
+}
+
/* List of text-like input types taken from Bootstrap */
input {
&[type="text"],