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: Remove outline on buttons on click.

Aman Agrawal8427c2e76336
diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.css
index 271dc6116fd..b0703e67ee9 100644
--- a/web/styles/dark_theme.css
+++ b/web/styles/dark_theme.css
@@ -428,7 +428,7 @@
}
& a:not(:active):focus,
- button:not(.action-button, .icon-button):focus,
+ button:not(.action-button, .icon-button):focus-visible,
i.fa:focus,
i.zulip-icon:focus,
[role="button"]:focus {
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 866b7439ef7..f42d5cc0d0b 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -686,9 +686,13 @@ label {
line-height: inherit;
}
+button:focus {
+ outline: 0;
+}
+
/* Bootstrap's focus outline uses -webkit-focus-ring-color which doesn't exist in Firefox */
a:not(:active):focus,
-button:focus,
+button:focus-visible,
label.checkbox input[type="checkbox"]:focus ~ .rendered-checkbox,
i.fa:focus,
i.zulip-icon:focus-visible,