Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose: Show banner close focus outline only for keyboard focus.
sandeep821237b1f4ef
diff --git a/web/styles/compose.css b/web/styles/compose.cssindex 478d047812e..2f1c68ecac5 100644--- a/web/styles/compose.css+++ b/web/styles/compose.css@@ -1047,6 +1047,19 @@}}+/* Show the focus outline on banner close buttons only for+ keyboard navigation, not for mouse clicks.+ TODO: These banners still use the legacy .main-view-banner+ markup. We should migrate the compose and edit-form banners+ to the modern banner and button components, which handle+ keyboard vs. mouse focus correctly; this rule is an interim fix. */+#compose_banners,+.edit_form_banners {+ .main-view-banner-close-button:focus:not(:focus-visible) {+ outline: 0;+ }+}+.upload_banner {overflow: hidden;