From b1e686b56236f43ed27d6d68bae4997ee5acadc8 Mon Sep 17 00:00:00 2001 From: Juan Denis Date: Tue, 10 Nov 2026 22:30:40 -0500 Subject: [PATCH] fix(ui): show hover-only row actions when they get keyboard focus --- frontend/src/styles/components/_dashboard-widgets.scss | 4 +++- frontend/src/styles/components/_datagrid.scss | 4 +++- frontend/src/styles/components/_design-system.scss | 3 ++- frontend/src/styles/pages/_databases.scss | 3 ++- frontend/src/styles/pages/_file-manager.scss | 8 ++++++-- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/frontend/src/styles/components/_dashboard-widgets.scss b/frontend/src/styles/components/_dashboard-widgets.scss index 7d4daaff..b9be8c3e 100644 --- a/frontend/src/styles/components/_dashboard-widgets.scss +++ b/frontend/src/styles/components/_dashboard-widgets.scss @@ -445,6 +445,7 @@ $skw-z-tv: 200; } &:hover &__actions, + &:focus-within &__actions, &--selected &__actions, &.is-selected &__actions { opacity: 1; } @@ -1369,7 +1370,8 @@ $skw-z-tv: 200; transition: opacity 0.14s; } - &__card:hover &__add { opacity: 0.94; } + &__card:hover &__add, + &__card:focus-within &__add { opacity: 0.94; } &__meta { padding: 10px 11px 12px; } diff --git a/frontend/src/styles/components/_datagrid.scss b/frontend/src/styles/components/_datagrid.scss index d302e8c1..446fadd5 100644 --- a/frontend/src/styles/components/_datagrid.scss +++ b/frontend/src/styles/components/_datagrid.scss @@ -209,6 +209,7 @@ } &__row:hover &__cog, + &__row:focus-within &__cog, &__row.is-on &__cog { opacity: 1; } } @@ -535,7 +536,8 @@ } } - &__row:hover &__rowend button { opacity: 1; } + &__row:hover &__rowend button, + &__row:focus-within &__rowend button { opacity: 1; } // ---- group headers ---- &__group { diff --git a/frontend/src/styles/components/_design-system.scss b/frontend/src/styles/components/_design-system.scss index dc491dbf..8859e5c7 100644 --- a/frontend/src/styles/components/_design-system.scss +++ b/frontend/src/styles/components/_design-system.scss @@ -1031,7 +1031,8 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet'); opacity: 0; transition: 0.12s; - .sk-viewmenu__row:hover & { opacity: 1; } + .sk-viewmenu__row:hover &, + .sk-viewmenu__row:focus-within & { opacity: 1; } &:hover { background: var(--surface); color: var(--text); } } diff --git a/frontend/src/styles/pages/_databases.scss b/frontend/src/styles/pages/_databases.scss index 9786bdb6..852a10f6 100644 --- a/frontend/src/styles/pages/_databases.scss +++ b/frontend/src/styles/pages/_databases.scss @@ -171,7 +171,8 @@ $dbx-sqlite: #3d8fd1; user-select: none; transition: background $transition-fast; - &:hover { background: $bg-hover; .dbx-tree-more { opacity: 1; } } + &:hover, + &:focus-within { background: $bg-hover; .dbx-tree-more { opacity: 1; } } &:focus-visible { outline: 2px solid $accent-primary; outline-offset: -2px; } &.is-selected { background: $accent-glow; } diff --git a/frontend/src/styles/pages/_file-manager.scss b/frontend/src/styles/pages/_file-manager.scss index b6887f4f..90e05920 100644 --- a/frontend/src/styles/pages/_file-manager.scss +++ b/frontend/src/styles/pages/_file-manager.scss @@ -1139,7 +1139,8 @@ $ft-default: #646b7a; @include transition(all); user-select: none; - &:hover { + &:hover, + &:focus-within { background: var(--surface-2); .file-card-check { opacity: 1; } @@ -1321,7 +1322,8 @@ $ft-default: #646b7a; &:last-child { border-bottom: none; } - &:hover { + &:hover, + &:focus-within { background: var(--surface-2); .col-actions .row-action { opacity: 1; } .col-check .checkbox { border-color: $border-hover; } @@ -1379,6 +1381,7 @@ $ft-default: #646b7a; &.select-mode .file-list .file-list-header .col-check, &.select-mode .file-list .file-item .col-check, .file-list .file-item:hover .col-check, + .file-list .file-item:focus-within .col-check, .file-list .file-item.selected .col-check { opacity: 1; } @@ -1408,6 +1411,7 @@ $ft-default: #646b7a; opacity: 0; @include transition(all); + &:focus-visible { opacity: 1; } &:hover { background: var(--surface-3); color: var(--text); } &.danger:hover { @include status-variant($danger, $danger-bg); } }