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.

compose: Hide scrolling buttons with keyboard focus.

Karl Stolleyea3cd1838276
diff --git a/web/styles/compose.css b/web/styles/compose.css
index ef25ab9c87d..b98cfda0c99 100644
--- a/web/styles/compose.css
+++ b/web/styles/compose.css
@@ -576,6 +576,21 @@
pointer-events: all;
}
+/* Hide the scroller buttons when someone has reached
+ the formatting bar via Tab. Scroller-button state
+ silently updates despite their being hidden, and
+ scroller buttons reappear once focus has moved out
+ of the formatting bar. */
+.compose-scrolling-buttons-container:has(
+ .compose-scrollable-buttons:focus-within
+ ) {
+ .formatting-scroller-backward,
+ .formatting-scroller-forward {
+ opacity: 0;
+ pointer-events: none;
+ }
+}
+
.message-limit-indicator:not(:empty) {
font-size: 12px;
color: var(--color-limit-indicator);