Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(app): show message actions only on keyboard focus (#1941)

Hampus986c586683f6
diff --git a/fluxer_app/src/features/theme/styles/Message.module.css b/fluxer_app/src/features/theme/styles/Message.module.css
index d62869ae9..2ea1a7d5b 100644
--- a/fluxer_app/src/features/theme/styles/Message.module.css
+++ b/fluxer_app/src/features/theme/styles/Message.module.css
@@ -688,7 +688,7 @@
.buttons:hover,
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.message
- .buttons:focus-within,
+ .buttons:has(:focus-visible),
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.message.selected
.buttons,
@@ -703,7 +703,7 @@
.buttons:hover,
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.messageCompact
- .buttons:focus-within,
+ .buttons:has(:focus-visible),
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.messageCompact.selected
.buttons,