Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
css: Set standard outline color for focusable elements.
Aman Agrawal4d37215c3d0d
diff --git a/static/styles/components.css b/static/styles/components.cssindex 2e7ba1fef29..8b4041f8533 100644--- a/static/styles/components.css+++ b/static/styles/components.css@@ -42,11 +42,6 @@background-repeat: no-repeat;}- &:focus ~ span {- outline: 1px dotted;- outline: -webkit-focus-ring-color auto 5px;- }-&:disabled ~ span {opacity: 0.5;cursor: not-allowed;diff --git a/static/styles/night_mode.css b/static/styles/night_mode.cssindex 498c1add9b6..807c37b222e 100644--- a/static/styles/night_mode.css+++ b/static/styles/night_mode.css@@ -171,7 +171,7 @@ body.night-mode {}/* do not turn the .message_header .stream_label text dark on hover because they're-on a dark background, and don't change the dark labels dark either. */+ on a dark background, and don't change the dark labels dark either. */.message_header:not(.dark_background)a.stream_label:not(.dark_background):hover {color: hsl(212, 28%, 18%);@@ -1073,8 +1073,13 @@ on a dark background, and don't change the dark labels dark either. */}}- a:not(:active):focus {- outline-color: hsl(0, 0%, 100%);+ a:not(:active):focus,+ button:focus,+ .new-style label.checkbox input[type="checkbox"]:focus ~ span,+ i.fa:focus,+ i.zulip-icon:focus,+ .auto-select:focus {+ outline-color: hsl(0, 0%, 67%);}}diff --git a/static/styles/zulip.css b/static/styles/zulip.cssindex 2708c7aed2d..c6cff99a311 100644--- a/static/styles/zulip.css+++ b/static/styles/zulip.css@@ -424,7 +424,12 @@ label {}/* Bootstrap's focus outline uses -webkit-focus-ring-color which doesn't exist in Firefox */-a:not(:active):focus {+a:not(:active):focus,+button:focus,+.new-style label.checkbox input[type="checkbox"]:focus ~ span,+i.fa:focus,+i.zulip-icon:focus,+.auto-select:focus {outline: 2px solid hsl(215, 47%, 50%);/* TODO: change solid to auto once the Chromium bug #1105822 is fixed */}