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: Prevent scroller arrows from blinking on button clicks.

sandeep5784ebe8ca8a
diff --git a/web/styles/compose.css b/web/styles/compose.css
index d32e54aef71..478d047812e 100644
--- a/web/styles/compose.css
+++ b/web/styles/compose.css
@@ -632,9 +632,11 @@
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. */
+ of the formatting bar. Using :focus-visible (instead
+ of :focus-within) avoids hiding the buttons during a
+ mouse click, which would otherwise cause a blink. */
.compose-scrolling-buttons-container:has(
- .compose-scrollable-buttons:focus-within
+ .compose-scrollable-buttons :focus-visible
) {
.formatting-scroller-backward,
.formatting-scroller-forward {