fix(ui): show hover-only row actions when they get keyboard focus

This commit is contained in:
Juan Denis committed 2026-11-10 22:30:40 -05:00
1 parent cc230a111a
commit b1e686b562
5 files changed
+16 -6

No files matched your search

@@ -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; }
@@ -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 {
@@ -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); }
}
+2 -1
View File
@@ -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; }
+6 -2
View File
@@ -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); }
}