From cc230a111a6d3fd7346e2521be6e2d240c4b37b3 Mon Sep 17 00:00:00 2001 From: Juan Denis Date: Tue, 10 Nov 2026 22:25:23 -0500 Subject: [PATCH 1/2] feat(ui): name icon buttons and keep keyboard focus visible - InfoTip: name is "More info about " (subject prop, else title, else the label text right before it); plain "More info" stays the fallback. - Button: an icon-only button with a title now uses it as its aria-label. - Files: toolbar toggles and view buttons get aria-pressed; row actions and the row checkbox name the file ("Rename config.yml", "Select: config.yml"); select-all, Up, sidebar Refresh/New folder named. - Log viewer: line-number/word-wrap toggles use aria-pressed; search and filter inputs (Terminal page) get accessible names. - Overflow/icon-only menus say "More actions" or their action (SSL, Webhooks, Vaults, API settings, fleet thresholds, status pages). - Focus: Terminal unit input and Servers group-name input keep the global ring; page tab strip rings pulled inside its overflow clip; $focus-ring is now solid accent instead of a 35% tint. - i18n: common.moreInfoAbout, common.actionTarget, common.moreActions, app.fileManager.up in all locales; drop unused app.fileRow.deselect. --- frontend/src/components/InfoTip.jsx | 17 ++++++-- frontend/src/components/LogViewer.jsx | 2 +- .../__tests__/iconButtonNames.test.mjs | 41 +++++++++++++++++++ .../file-manager/FileManagerListing.jsx | 2 + .../file-manager/FileManagerSidebar.jsx | 1 + .../file-manager/FileManagerToolbar.jsx | 5 ++- .../src/components/file-manager/FileRow.jsx | 12 +++--- frontend/src/components/infoTipName.js | 24 +++++++++++ .../src/components/log-viewer/LogFileList.jsx | 1 + .../src/components/log-viewer/LogToolbar.jsx | 3 ++ .../monitoring/FleetThresholdsPanel.jsx | 4 +- .../components/settings/ApiSettingsTab.jsx | 2 +- .../src/components/settings/WebhooksTab.jsx | 2 +- frontend/src/components/ui/button.jsx | 8 +++- frontend/src/i18n/locales/ar.json | 5 ++- frontend/src/i18n/locales/bn.json | 5 ++- frontend/src/i18n/locales/de.json | 5 ++- frontend/src/i18n/locales/en.json | 5 ++- frontend/src/i18n/locales/es.json | 5 ++- frontend/src/i18n/locales/fr.json | 5 ++- frontend/src/i18n/locales/id.json | 5 ++- frontend/src/i18n/locales/it.json | 5 ++- frontend/src/i18n/locales/ko.json | 5 ++- frontend/src/i18n/locales/pl.json | 5 ++- frontend/src/i18n/locales/pt.json | 5 ++- frontend/src/i18n/locales/ru.json | 5 ++- frontend/src/i18n/locales/th.json | 5 ++- frontend/src/i18n/locales/tr.json | 5 ++- frontend/src/i18n/locales/vi.json | 5 ++- frontend/src/i18n/locales/zh-Hans.json | 5 ++- frontend/src/i18n/locales/zh-Hant.json | 5 ++- frontend/src/pages/SSLCertificates.jsx | 4 +- frontend/src/pages/StatusPages.jsx | 2 +- frontend/src/pages/Terminal.jsx | 1 + frontend/src/pages/Vaults.jsx | 2 +- frontend/src/styles/_variables.scss | 2 +- .../src/styles/components/_design-system.scss | 3 ++ frontend/src/styles/pages/_servers.scss | 4 -- frontend/src/styles/pages/_terminal.scss | 2 - 39 files changed, 185 insertions(+), 44 deletions(-) create mode 100644 frontend/src/components/__tests__/iconButtonNames.test.mjs create mode 100644 frontend/src/components/infoTipName.js diff --git a/frontend/src/components/InfoTip.jsx b/frontend/src/components/InfoTip.jsx index 05e39a80..240562fd 100644 --- a/frontend/src/components/InfoTip.jsx +++ b/frontend/src/components/InfoTip.jsx @@ -1,9 +1,10 @@ -import { useRef, useState } from 'react'; +import { useLayoutEffect, useRef, useState } from 'react'; import { Info } from 'lucide-react'; import { Popover, PopoverTrigger, PopoverContent } from '@/components/ui/popover'; import { Sheet, SheetTrigger, SheetContent, SheetTitle } from '@/components/ui/sheet'; import useMediaQuery from '../hooks/useMediaQuery'; import { t } from '../i18n/t'; +import { infoTipName, nearbyText } from './infoTipName'; // An (i) button that holds the explanation a page used to print inline. // Mouse: hover/focus previews it. Touch and click toggle a pinned popover that @@ -15,11 +16,18 @@ import { t } from '../i18n/t'; // the same element (separate it with a plain space, or let the flex gap do it), // never on its own line. Standard: ~4px after the text, centred on that line. // `trigger` replaces the (i) glyph (e.g. a whole step pill); `title` heads the sheet. -export default function InfoTip({ children, label, title, trigger, side = 'top', size = 'sm', className = '' }) { +// The button is named "More info about ": `subject`, else `title`, else +// the text right before it. `label` overrides the whole name. +export default function InfoTip({ children, label, subject, title, trigger, side = 'top', size = 'sm', className = '' }) { const [open, setOpen] = useState(false); const narrow = useMediaQuery('(max-width: 640px)'); const pinned = useRef(false); const pinnedByKey = useRef(false); + const buttonRef = useRef(null); + const [nearby, setNearby] = useState(''); + // narrow swaps Popover for Sheet, which remounts the button. + useLayoutEffect(() => { setNearby(nearbyText(buttonRef.current)); }, [narrow, subject, title, label]); + const name = infoTipName({ label, subject, title, nearby }, t); const hoverable = (e) => e.pointerType === 'mouse'; // preventDefault skips Radix's toggle (it honours defaultPrevented); Space @@ -47,9 +55,10 @@ export default function InfoTip({ children, label, title, trigger, side = 'top', const button = ( // eslint-disable-next-line no-restricted-syntax -- bare 18px glyph button; Button/IconButton add control-sized chrome and a nested Tip )} diff --git a/frontend/src/components/__tests__/iconButtonNames.test.mjs b/frontend/src/components/__tests__/iconButtonNames.test.mjs new file mode 100644 index 00000000..9b0f1bec --- /dev/null +++ b/frontend/src/components/__tests__/iconButtonNames.test.mjs @@ -0,0 +1,41 @@ +import assert from 'node:assert/strict'; +import test from 'node:test'; +import { readFileSync } from 'node:fs'; + +import { infoTipName, nearbyText } from '../infoTipName.js'; + +// Same interpolation as i18next, minus the dependency on an initialised instance. +const t = (_key, fallback, vars = {}) => fallback.replace(/\{\{(\w+)\}\}/g, (_, k) => vars[k]); + +test('InfoTip is named after what it explains', () => { + assert.equal(infoTipName({ subject: 'Server group' }, t), 'More info about Server group'); + assert.equal(infoTipName({ title: 'Retention' }, t), 'More info about Retention'); + assert.equal(infoTipName({ nearby: 'Auto-renew' }, t), 'More info about Auto-renew'); +}); + +test('InfoTip subject beats title beats nearby text; label overrides all; plain fallback', () => { + assert.equal(infoTipName({ subject: 'A', title: 'B', nearby: 'C' }, t), 'More info about A'); + assert.equal(infoTipName({ title: 'B', nearby: 'C' }, t), 'More info about B'); + assert.equal(infoTipName({ label: 'Why?', subject: 'A' }, t), 'Why?'); + assert.equal(infoTipName({ title: { type: 'span' }, nearby: ' ' }, t), 'More info'); +}); + +test('nearbyText reads the label printed before the button, trimmed', () => { + const el = { previousSibling: { textContent: ' ', previousSibling: { textContent: ' Cert expiry ' } } }; + assert.equal(nearbyText(el), 'Cert expiry'); + const control = { nodeType: 1, matches: () => true, textContent: 'Preview routing' }; + assert.equal(nearbyText({ previousSibling: control }), ''); + assert.equal(nearbyText({ previousSibling: null }), ''); +}); + +// No jsdom: guard the wiring of the Files toolbar toggle and the file rows. +test('Files toolbar toggles expose aria-pressed; Button names icon-only controls from title', () => { + const toolbar = readFileSync(new URL('../file-manager/FileManagerToolbar.jsx', import.meta.url), 'utf8'); + assert.match(toolbar, /aria-pressed=\{viewMode === 'grid'\}/); + assert.match(toolbar, /aria-pressed=\{showHidden\}/); + const row = readFileSync(new URL('../file-manager/FileRow.jsx', import.meta.url), 'utf8'); + assert.match(row, /aria-pressed=\{selected\}/); + assert.match(row, /aria-label=\{named\(/); + const button = readFileSync(new URL('../ui/button.jsx', import.meta.url), 'utf8'); + assert.match(button, /aria-label=\{title && \(reasoned \|\| !hasText\(children\)\) \? title : undefined\}/); +}); diff --git a/frontend/src/components/file-manager/FileManagerListing.jsx b/frontend/src/components/file-manager/FileManagerListing.jsx index b4524d76..7d7384b8 100644 --- a/frontend/src/components/file-manager/FileManagerListing.jsx +++ b/frontend/src/components/file-manager/FileManagerListing.jsx @@ -119,6 +119,8 @@ export default function FileManagerListing({ variant="unstyled" type="button" className="checkbox-btn" + aria-label={t('app.dataTable.selectAll', 'Select all')} + aria-pressed={selectedPaths.size === sortedFiltered.length && sortedFiltered.length > 0} onClick={() => { if (selectedPaths.size === sortedFiltered.length) clearSelection(); diff --git a/frontend/src/components/file-manager/FileManagerSidebar.jsx b/frontend/src/components/file-manager/FileManagerSidebar.jsx index aa524bab..2b660f2d 100644 --- a/frontend/src/components/file-manager/FileManagerSidebar.jsx +++ b/frontend/src/components/file-manager/FileManagerSidebar.jsx @@ -115,6 +115,7 @@ export default function FileManagerSidebar({ onClick={loadDiskMounts} disabled={diskLoading} title={t('common.actions.refresh', 'Refresh')} + aria-label={t('common.actions.refresh', 'Refresh')} > diff --git a/frontend/src/components/file-manager/FileManagerToolbar.jsx b/frontend/src/components/file-manager/FileManagerToolbar.jsx index d052cfae..06ea22e0 100644 --- a/frontend/src/components/file-manager/FileManagerToolbar.jsx +++ b/frontend/src/components/file-manager/FileManagerToolbar.jsx @@ -105,7 +105,7 @@ export default function FileManagerToolbar({ onClick={goUp} disabled={!parentPath} disabledReason={t('app.fileManager.alreadyAtTheTopFolder', 'Already at the top folder')} - title="Up" + title={t('app.fileManager.up', 'Up')} > @@ -227,6 +227,7 @@ export default function FileManagerToolbar({ type="button" className={`view-toggle-btn ${viewMode === 'grid' ? 'active' : ''}`} onClick={() => setViewMode('grid')} + aria-pressed={viewMode === 'grid'} title={t('app.fileManager.gridView', 'Grid view')} > @@ -236,6 +237,7 @@ export default function FileManagerToolbar({ type="button" className={`view-toggle-btn ${viewMode === 'list' ? 'active' : ''}`} onClick={() => setViewMode('list')} + aria-pressed={viewMode === 'list'} title={t('app.fileManager.listView', 'List view')} > @@ -246,6 +248,7 @@ export default function FileManagerToolbar({ type="button" className={`toolbar-icon-btn ${showHidden ? 'active' : ''}`} onClick={() => setShowHidden(!showHidden)} + aria-pressed={showHidden} title={t('app.fileManager.toggleHiddenFiles', 'Toggle hidden files')} > {showHidden ? : } diff --git a/frontend/src/components/file-manager/FileRow.jsx b/frontend/src/components/file-manager/FileRow.jsx index 489b45b7..35a80de7 100644 --- a/frontend/src/components/file-manager/FileRow.jsx +++ b/frontend/src/components/file-manager/FileRow.jsx @@ -18,6 +18,7 @@ function FileRow({ onDelete, }) { const { t } = useTranslation(); + const named = (action) => t('common.actionTarget', '{{action}}: {{subject}}', { action, subject: entry.name }); return (
onToggleSelect(entry, { ...e, ctrlKey: true })} - aria-label={selected ? t('app.fileRow.deselect', 'Deselect') : t('app.fileRow.select', 'Select')} + aria-label={t('common.actionTarget', '{{action}}: {{subject}}', { action: t('app.fileRow.select', 'Select'), subject: entry.name })} + aria-pressed={selected} > {selected && } @@ -58,17 +60,17 @@ function FileRow({ {entry.owner} e.stopPropagation()}> {!entry.is_dir && ( - onDownload(entry)} title={t('common.actions.download', 'Download')}> + onDownload(entry)} title={t('common.actions.download', 'Download')} aria-label={named(t('common.actions.download', 'Download'))}> )} - onRename(entry)} title={t('app.fileRow.rename', 'Rename')}> + onRename(entry)} title={t('app.fileRow.rename', 'Rename')} aria-label={named(t('app.fileRow.rename', 'Rename'))}> - onPermissions(entry)} title={t('common.labels.permissions', 'Permissions')}> + onPermissions(entry)} title={t('common.labels.permissions', 'Permissions')} aria-label={named(t('common.labels.permissions', 'Permissions'))}> - onDelete(entry)} title={t('common.actions.delete', 'Delete')}> + onDelete(entry)} title={t('common.actions.delete', 'Delete')} aria-label={named(t('common.actions.delete', 'Delete'))}> diff --git a/frontend/src/components/infoTipName.js b/frontend/src/components/infoTipName.js new file mode 100644 index 00000000..8e22c7e1 --- /dev/null +++ b/frontend/src/components/infoTipName.js @@ -0,0 +1,24 @@ +// Accessible name of an InfoTip's (i) button: "More info about ", or +// plain "More info" when nothing says what it explains. The subject is the +// explicit prop, else the sheet title, else the text printed just before the +// button (the label/heading the tip is placed after). +const MAX = 60; +const CONTROL = 'button,a,input,select,textarea,[role=button]'; + +// Nearest label text before the button; a neighbouring control is not a label. +export const nearbyText = (el) => { + for (let n = el?.previousSibling; n; n = n.previousSibling) { + const text = (n.textContent || '').replace(/\s+/g, ' ').trim(); + if (n.nodeType === 1 && n.matches?.(CONTROL)) return ''; + if (text) return text.length > MAX ? `${text.slice(0, MAX)}…` : text; + } + return ''; +}; + +export function infoTipName({ label, subject, title, nearby }, t) { + const about = [subject, typeof title === 'string' ? title : '', nearby].find((s) => s && s.trim()); + if (label) return label; + return about + ? t('common.moreInfoAbout', 'More info about {{subject}}', { subject: about.trim() }) + : t('common.moreInfo', 'More info'); +} diff --git a/frontend/src/components/log-viewer/LogFileList.jsx b/frontend/src/components/log-viewer/LogFileList.jsx index c731a95d..76be6130 100644 --- a/frontend/src/components/log-viewer/LogFileList.jsx +++ b/frontend/src/components/log-viewer/LogFileList.jsx @@ -63,6 +63,7 @@ export default function LogFileList({ files, selectedPath, onSelect, onRefresh, type="text" value={query} onChange={(e) => setQuery(e.target.value)} + aria-label={t('app.logFileList.filterLogFiles', 'Filter log files…')} placeholder={t('app.logFileList.filterLogFiles', 'Filter log files…')} />
diff --git a/frontend/src/components/log-viewer/LogToolbar.jsx b/frontend/src/components/log-viewer/LogToolbar.jsx index 023a5525..f1a7d205 100644 --- a/frontend/src/components/log-viewer/LogToolbar.jsx +++ b/frontend/src/components/log-viewer/LogToolbar.jsx @@ -25,6 +25,7 @@ export default function LogToolbar({ placeholder={t('app.logToolbar.searchInLog', 'Search in log…')} value={searchPattern} onChange={(e) => onSearchChange(e.target.value)} + aria-label={t('app.logToolbar.searchInLog', 'Search in log…')} onKeyDown={(e) => e.key === 'Enter' && onSearchSubmit()} /> {searchPattern && ( @@ -65,6 +66,7 @@ export default function LogToolbar({ @@ -72,6 +74,7 @@ export default function LogToolbar({ diff --git a/frontend/src/components/monitoring/FleetThresholdsPanel.jsx b/frontend/src/components/monitoring/FleetThresholdsPanel.jsx index 55ac65be..776c474f 100644 --- a/frontend/src/components/monitoring/FleetThresholdsPanel.jsx +++ b/frontend/src/components/monitoring/FleetThresholdsPanel.jsx @@ -121,8 +121,8 @@ export default function FleetThresholdsPanel({ refreshKey = 0 }) { sortable: false, hideable: false, cellClassName: 'mon-row-actions', - render: (t) => ( - ), diff --git a/frontend/src/components/settings/ApiSettingsTab.jsx b/frontend/src/components/settings/ApiSettingsTab.jsx index 72c4c498..4b28bc98 100644 --- a/frontend/src/components/settings/ApiSettingsTab.jsx +++ b/frontend/src/components/settings/ApiSettingsTab.jsx @@ -638,7 +638,7 @@ const WebhookSection = () => { > {t('common.actions.delete', 'Delete')} - diff --git a/frontend/src/components/settings/WebhooksTab.jsx b/frontend/src/components/settings/WebhooksTab.jsx index 5087678a..987761ca 100644 --- a/frontend/src/components/settings/WebhooksTab.jsx +++ b/frontend/src/components/settings/WebhooksTab.jsx @@ -192,7 +192,7 @@ export default function WebhooksTab() { render: (ep) => ( e.stopPropagation()}> - + openEndpoint(ep.id)}>{t('app.webhooksTab.viewDeliveries', 'View deliveries')} diff --git a/frontend/src/components/ui/button.jsx b/frontend/src/components/ui/button.jsx index 1f834c20..8ce3808d 100644 --- a/frontend/src/components/ui/button.jsx +++ b/frontend/src/components/ui/button.jsx @@ -25,6 +25,12 @@ import { Tooltip, TooltipTrigger, TooltipContent } from './tooltip'; // change width mid-click and the row around it does not jump. The button is // disabled and aria-busy while it lasts; `loadingText` replaces the // accessible name ("Saving…") when the visible label would lie. +// An icon-only button's native `title` is its tooltip but not a reliable name: +// without visible text it also becomes the aria-label (an explicit one wins). +const hasText = (node) => React.Children.toArray(node).some((c) => ( + typeof c === 'string' || typeof c === 'number' ? String(c).trim() !== '' : React.isValidElement(c) && hasText(c.props.children) +)); + const Button = React.forwardRef(({ className, variant, size, asChild = false, loading = false, loadingText, disabled, disabledReason, children, onClick, title, 'aria-describedby': describedBy, ...props @@ -51,7 +57,7 @@ const Button = React.forwardRef(({ aria-describedby={reasoned ? [describedBy, reasonId].filter(Boolean).join(' ') : describedBy} aria-busy={loading || undefined} title={reasoned ? undefined : title} - aria-label={reasoned && title ? title : undefined} // the native title (the name of an icon button) is dropped for the tooltip + aria-label={title && (reasoned || !hasText(children)) ? title : undefined} // a reasoned button drops the native title for the tooltip onClick={reasoned ? (e) => { e.preventDefault(); setOpen(true); } : onClick} {...props} > diff --git a/frontend/src/i18n/locales/ar.json b/frontend/src/i18n/locales/ar.json index 8cc6c24e..4ef7d33c 100644 --- a/frontend/src/i18n/locales/ar.json +++ b/frontend/src/i18n/locales/ar.json @@ -2764,6 +2764,7 @@ "tryADifferentSearchTermOr": "جرّب مصطلح بحث مختلفًا أو تصفح مجلدًا آخر.", "typeZA": "اكتب Z-A", "types": "أنواع", + "up": "أعلى", "upDelDeleteF2RenameA": "⌫ لأعلى · ديل حذف · إعادة تسمية F2 · ⌘A الكل", "updatedAt": "تم التحديث {{time}}", "upload": "رفع", @@ -2783,7 +2784,6 @@ "alreadyAtTheTopFolder": "أنت بالفعل في المجلد الأعلى" }, "fileRow": { - "deselect": "قم بإلغاء التحديد", "rename": "إعادة تسمية", "select": "يختار" }, @@ -8049,6 +8049,7 @@ "validatingInvitation": "جارٍ التحقق من الدعوة…" }, "common": { + "actionTarget": "{{action}}: {{subject}}", "actions": { "add": "يضيف", "back": "خلف", @@ -8183,6 +8184,8 @@ }, "loading": "تحميل…", "more": "أكثر", + "moreActions": "المزيد من الإجراءات", + "moreInfoAbout": "مزيد من المعلومات حول {{subject}}", "moreSections": "المزيد من الأقسام", "page": "صفحة", "retry": "إعادة المحاولة", diff --git a/frontend/src/i18n/locales/bn.json b/frontend/src/i18n/locales/bn.json index 6001a90b..f78e8750 100644 --- a/frontend/src/i18n/locales/bn.json +++ b/frontend/src/i18n/locales/bn.json @@ -2764,6 +2764,7 @@ "tryADifferentSearchTermOr": "একটি ভিন্ন অনুসন্ধান শব্দ চেষ্টা করুন বা অন্য ফোল্ডার ব্রাউজ করুন.", "typeZA": "Z-A টাইপ করুন", "types": "প্রকারভেদ", + "up": "উপরে", "upDelDeleteF2RenameA": "⌫ Up · Del Delete · F2 Rename · ⌘A All", "updatedAt": "আপডেট হয়েছে {{time}}", "upload": "আপলোড করুন", @@ -2783,7 +2784,6 @@ "alreadyAtTheTopFolder": "ইতিমধ্যেই সর্বোচ্চ ফোল্ডারে আছেন" }, "fileRow": { - "deselect": "অনির্বাচন করুন", "rename": "নাম পরিবর্তন করুন", "select": "নির্বাচন করুন" }, @@ -8049,6 +8049,7 @@ "validatingInvitation": "আমন্ত্রণ যাচাই করা হচ্ছে..." }, "common": { + "actionTarget": "{{action}}: {{subject}}", "actions": { "add": "যোগ করুন", "back": "ব্যাক", @@ -8183,6 +8184,8 @@ }, "loading": "লোড হচ্ছে...", "more": "আরও", + "moreActions": "আরও অ্যাকশন", + "moreInfoAbout": "{{subject}} সম্পর্কে আরও তথ্য", "moreSections": "আরো বিভাগ", "page": "পাতা", "retry": "আবার চেষ্টা করুন", diff --git a/frontend/src/i18n/locales/de.json b/frontend/src/i18n/locales/de.json index 95c95912..d6b1b934 100644 --- a/frontend/src/i18n/locales/de.json +++ b/frontend/src/i18n/locales/de.json @@ -2764,6 +2764,7 @@ "tryADifferentSearchTermOr": "Versuchen Sie es mit einem anderen Suchbegriff oder durchsuchen Sie einen anderen Ordner.", "typeZA": "Typ Z-A", "types": "Typen", + "up": "Nach oben", "upDelDeleteF2RenameA": "⌫ Nach oben · Entf Löschen · F2 Umbenennen · ⌘A Alle", "updatedAt": "Aktualisiert {{time}}", "upload": "Hochladen", @@ -2783,7 +2784,6 @@ "alreadyAtTheTopFolder": "Bereits im obersten Ordner" }, "fileRow": { - "deselect": "Abwählen", "rename": "Umbenennen", "select": "Auswählen" }, @@ -8049,6 +8049,7 @@ "validatingInvitation": "Einladung wird validiert…" }, "common": { + "actionTarget": "{{action}}: {{subject}}", "actions": { "add": "Hinzufügen", "back": "Zurück", @@ -8183,6 +8184,8 @@ }, "loading": "Laden…", "more": "Mehr", + "moreActions": "Weitere Aktionen", + "moreInfoAbout": "Mehr Infos zu {{subject}}", "moreSections": "Weitere Abschnitte", "page": "Seite", "retry": "Erneut versuchen", diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.json index dc9fbcc1..8d991763 100644 --- a/frontend/src/i18n/locales/en.json +++ b/frontend/src/i18n/locales/en.json @@ -2833,6 +2833,7 @@ "tryADifferentSearchTermOr": "Try a different search term or browse another folder.", "typeZA": "Type Z-A", "types": "Types", + "up": "Up", "upDelDeleteF2RenameA": "⌫ Up · Del Delete · F2 Rename · ⌘A All", "updatedAt": "Updated {{time}}", "upload": "Upload", @@ -2849,7 +2850,6 @@ "willBeCreatedIn": "Will be created in:" }, "fileRow": { - "deselect": "Deselect", "rename": "Rename", "select": "Select" }, @@ -8441,6 +8441,7 @@ "validatingInvitation": "Validating invitation…" }, "common": { + "actionTarget": "{{action}}: {{subject}}", "actions": { "add": "Add", "back": "Back", @@ -8625,7 +8626,9 @@ }, "loading": "Loading…", "more": "More", + "moreActions": "More actions", "moreInfo": "More info", + "moreInfoAbout": "More info about {{subject}}", "moreSections": "More sections", "page": "Page", "retry": "Retry", diff --git a/frontend/src/i18n/locales/es.json b/frontend/src/i18n/locales/es.json index 5f4a3b6d..5ee0411c 100644 --- a/frontend/src/i18n/locales/es.json +++ b/frontend/src/i18n/locales/es.json @@ -2764,6 +2764,7 @@ "tryADifferentSearchTermOr": "Prueba con otro término de búsqueda o navega a otra carpeta.", "typeZA": "Tipo Z-A", "types": "Tipos", + "up": "Subir", "upDelDeleteF2RenameA": "⌫ Subir · Del Eliminar · F2 Renombrar · ⌘A Todo", "updatedAt": "Actualizado {{time}}", "upload": "Subir", @@ -2783,7 +2784,6 @@ "alreadyAtTheTopFolder": "Ya estás en la carpeta superior" }, "fileRow": { - "deselect": "Deseleccionar", "rename": "Renombrar", "select": "Seleccionar" }, @@ -8050,6 +8050,7 @@ "validatingInvitation": "Validando la invitación…" }, "common": { + "actionTarget": "{{action}}: {{subject}}", "actions": { "add": "Añadir", "back": "Atrás", @@ -8184,6 +8185,8 @@ }, "loading": "Cargando…", "more": "Más", + "moreActions": "Más acciones", + "moreInfoAbout": "Más información sobre {{subject}}", "moreSections": "Más secciones", "page": "Página", "retry": "Reintentar", diff --git a/frontend/src/i18n/locales/fr.json b/frontend/src/i18n/locales/fr.json index 8e4981cb..f51ac774 100644 --- a/frontend/src/i18n/locales/fr.json +++ b/frontend/src/i18n/locales/fr.json @@ -2764,6 +2764,7 @@ "tryADifferentSearchTermOr": "Essayez un autre terme de recherche ou parcourez un autre dossier.", "typeZA": "Type Z-A", "types": "Espèces", + "up": "Dossier parent", "upDelDeleteF2RenameA": "⌫ Haut · Supprimer · F2 Renommer · ⌘A Tout", "updatedAt": "Mis à jour {{time}}", "upload": "Télécharger", @@ -2783,7 +2784,6 @@ "alreadyAtTheTopFolder": "Déjà dans le dossier racine" }, "fileRow": { - "deselect": "Désélectionner", "rename": "Rebaptiser", "select": "Sélectionner" }, @@ -8049,6 +8049,7 @@ "validatingInvitation": "Validation de l'invitation…" }, "common": { + "actionTarget": "{{action}} : {{subject}}", "actions": { "add": "Ajouter", "back": "Dos", @@ -8183,6 +8184,8 @@ }, "loading": "Chargement…", "more": "Plus", + "moreActions": "Plus d’actions", + "moreInfoAbout": "Plus d’infos sur {{subject}}", "moreSections": "Plus de rubriques", "page": "Page", "retry": "Réessayer", diff --git a/frontend/src/i18n/locales/id.json b/frontend/src/i18n/locales/id.json index e8749ffb..9924b9f7 100644 --- a/frontend/src/i18n/locales/id.json +++ b/frontend/src/i18n/locales/id.json @@ -2764,6 +2764,7 @@ "tryADifferentSearchTermOr": "Coba istilah pencarian lain atau jelajahi folder lain.", "typeZA": "Tipe Z-A", "types": "Jenis", + "up": "Naik", "upDelDeleteF2RenameA": "⌫ Atas · Del Hapus · F2 Ganti Nama · ⌘A Semua", "updatedAt": "Diperbarui {{time}}", "upload": "Mengunggah", @@ -2783,7 +2784,6 @@ "alreadyAtTheTopFolder": "Sudah di folder teratas" }, "fileRow": { - "deselect": "Batalkan pilihan", "rename": "Ganti nama", "select": "Memilih" }, @@ -8049,6 +8049,7 @@ "validatingInvitation": "Memvalidasi undangan…" }, "common": { + "actionTarget": "{{action}}: {{subject}}", "actions": { "add": "Menambahkan", "back": "Kembali", @@ -8183,6 +8184,8 @@ }, "loading": "Memuat…", "more": "Lagi", + "moreActions": "Tindakan lainnya", + "moreInfoAbout": "Info lebih lanjut tentang {{subject}}", "moreSections": "Lebih banyak bagian", "page": "Halaman", "retry": "Coba lagi", diff --git a/frontend/src/i18n/locales/it.json b/frontend/src/i18n/locales/it.json index 648a2bfa..3f5560c9 100644 --- a/frontend/src/i18n/locales/it.json +++ b/frontend/src/i18n/locales/it.json @@ -2764,6 +2764,7 @@ "tryADifferentSearchTermOr": "Prova un termine di ricerca diverso o sfoglia un'altra cartella.", "typeZA": "Digitare Z-A", "types": "Tipi", + "up": "Su", "upDelDeleteF2RenameA": "⌫ Su · Canc Elimina · F2 Rinomina · ⌘A Tutto", "updatedAt": "Aggiornato {{time}}", "upload": "Caricamento", @@ -2783,7 +2784,6 @@ "alreadyAtTheTopFolder": "Sei già nella cartella superiore" }, "fileRow": { - "deselect": "Deseleziona", "rename": "Rinominare", "select": "Selezionare" }, @@ -8049,6 +8049,7 @@ "validatingInvitation": "Convalida dell'invito…" }, "common": { + "actionTarget": "{{action}}: {{subject}}", "actions": { "add": "Aggiungere", "back": "Indietro", @@ -8183,6 +8184,8 @@ }, "loading": "Caricamento…", "more": "Di più", + "moreActions": "Altre azioni", + "moreInfoAbout": "Maggiori informazioni su {{subject}}", "moreSections": "Più sezioni", "page": "Pagina", "retry": "Riprova", diff --git a/frontend/src/i18n/locales/ko.json b/frontend/src/i18n/locales/ko.json index f97dd83b..a96d1494 100644 --- a/frontend/src/i18n/locales/ko.json +++ b/frontend/src/i18n/locales/ko.json @@ -2764,6 +2764,7 @@ "tryADifferentSearchTermOr": "다른 검색어를 사용해 보거나 다른 폴더를 찾아보세요.", "typeZA": "Z-A형", "types": "유형", + "up": "위로", "upDelDeleteF2RenameA": "⌫ 위로 · Del 삭제 · F2 이름 바꾸기 · ⌘A 모두", "updatedAt": "{{time}} 업데이트됨", "upload": "업로드", @@ -2783,7 +2784,6 @@ "alreadyAtTheTopFolder": "이미 최상위 폴더입니다" }, "fileRow": { - "deselect": "선택 취소", "rename": "이름 바꾸기", "select": "선택" }, @@ -8049,6 +8049,7 @@ "validatingInvitation": "초대 확인 중…" }, "common": { + "actionTarget": "{{action}}: {{subject}}", "actions": { "add": "추가", "back": "뒤로", @@ -8183,6 +8184,8 @@ }, "loading": "로드 중…", "more": "더보기", + "moreActions": "더 많은 작업", + "moreInfoAbout": "{{subject}}에 대한 추가 정보", "moreSections": "더 많은 섹션", "page": "페이지", "retry": "재시도", diff --git a/frontend/src/i18n/locales/pl.json b/frontend/src/i18n/locales/pl.json index 0631b73a..5e3b8e3f 100644 --- a/frontend/src/i18n/locales/pl.json +++ b/frontend/src/i18n/locales/pl.json @@ -2764,6 +2764,7 @@ "tryADifferentSearchTermOr": "Wypróbuj inne wyszukiwane hasło lub przejrzyj inny folder.", "typeZA": "Typ Z-A", "types": "Typy", + "up": "W górę", "upDelDeleteF2RenameA": "⌫ W górę · Usuń · F2 Zmień nazwę · ⌘A Wszystko", "updatedAt": "Zaktualizowano {{time}}", "upload": "Wgrywać", @@ -2783,7 +2784,6 @@ "alreadyAtTheTopFolder": "To już najwyższy folder" }, "fileRow": { - "deselect": "Odznacz", "rename": "Przemianować", "select": "Wybierać" }, @@ -8049,6 +8049,7 @@ "validatingInvitation": "Sprawdzam zaproszenie…" }, "common": { + "actionTarget": "{{action}}: {{subject}}", "actions": { "add": "Dodać", "back": "Z powrotem", @@ -8183,6 +8184,8 @@ }, "loading": "Załadunek…", "more": "Więcej", + "moreActions": "Więcej akcji", + "moreInfoAbout": "Więcej informacji o: {{subject}}", "moreSections": "Więcej sekcji", "page": "Strona", "retry": "Ponów", diff --git a/frontend/src/i18n/locales/pt.json b/frontend/src/i18n/locales/pt.json index 3246f177..b855edc3 100644 --- a/frontend/src/i18n/locales/pt.json +++ b/frontend/src/i18n/locales/pt.json @@ -2764,6 +2764,7 @@ "tryADifferentSearchTermOr": "Experimente um termo de pesquisa diferente ou navegue em outra pasta.", "typeZA": "Tipo Z-A", "types": "Tipos", + "up": "Subir", "upDelDeleteF2RenameA": "⌫ Para cima · Del Excluir · F2 Renomear · ⌘A Tudo", "updatedAt": "Atualizado {{time}}", "upload": "Carregar", @@ -2783,7 +2784,6 @@ "alreadyAtTheTopFolder": "Já está na pasta superior" }, "fileRow": { - "deselect": "Desmarcar", "rename": "Renomear", "select": "Selecione" }, @@ -8049,6 +8049,7 @@ "validatingInvitation": "Validando convite…" }, "common": { + "actionTarget": "{{action}}: {{subject}}", "actions": { "add": "Adicionar", "back": "Voltar", @@ -8183,6 +8184,8 @@ }, "loading": "Carregando…", "more": "Mais", + "moreActions": "Mais ações", + "moreInfoAbout": "Mais informações sobre {{subject}}", "moreSections": "Mais seções", "page": "Página", "retry": "Tentar novamente", diff --git a/frontend/src/i18n/locales/ru.json b/frontend/src/i18n/locales/ru.json index 2d30ac81..c3f767dc 100644 --- a/frontend/src/i18n/locales/ru.json +++ b/frontend/src/i18n/locales/ru.json @@ -2764,6 +2764,7 @@ "tryADifferentSearchTermOr": "Попробуйте другой поисковый запрос или просмотрите другую папку.", "typeZA": "Тип Z-A", "types": "Типы", + "up": "Вверх", "upDelDeleteF2RenameA": "⌫ Вверх · Удалить · Переименовать F2 · ⌘A Все", "updatedAt": "Обновлено {{time}}", "upload": "Загрузить", @@ -2783,7 +2784,6 @@ "alreadyAtTheTopFolder": "Это уже верхняя папка" }, "fileRow": { - "deselect": "Отменить выбор", "rename": "Переименовать", "select": "Выбрать" }, @@ -8049,6 +8049,7 @@ "validatingInvitation": "Проверка приглашения…" }, "common": { + "actionTarget": "{{action}}: {{subject}}", "actions": { "add": "Добавить", "back": "Назад", @@ -8183,6 +8184,8 @@ }, "loading": "Загрузка…", "more": "Более", + "moreActions": "Другие действия", + "moreInfoAbout": "Подробнее: {{subject}}", "moreSections": "Еще разделы", "page": "Страница", "retry": "Повторить", diff --git a/frontend/src/i18n/locales/th.json b/frontend/src/i18n/locales/th.json index 02872270..3d16e102 100644 --- a/frontend/src/i18n/locales/th.json +++ b/frontend/src/i18n/locales/th.json @@ -2764,6 +2764,7 @@ "tryADifferentSearchTermOr": "ลองใช้คำค้นหาอื่นหรือเรียกดูโฟลเดอร์อื่น", "typeZA": "ประเภท Z-A", "types": "ประเภท", + "up": "ขึ้น", "upDelDeleteF2RenameA": "⌫ ขึ้น · ลบ ลบ · F2 เปลี่ยนชื่อ · ⌘A ทั้งหมด", "updatedAt": "อัปเดต {{time}}", "upload": "อัปโหลด", @@ -2783,7 +2784,6 @@ "alreadyAtTheTopFolder": "อยู่ที่โฟลเดอร์บนสุดแล้ว" }, "fileRow": { - "deselect": "ยกเลิกการเลือก", "rename": "เปลี่ยนชื่อ", "select": "เลือก" }, @@ -8049,6 +8049,7 @@ "validatingInvitation": "กำลังตรวจสอบคำเชิญ..." }, "common": { + "actionTarget": "{{action}}: {{subject}}", "actions": { "add": "เพิ่ม", "back": "กลับ", @@ -8183,6 +8184,8 @@ }, "loading": "กำลังโหลด...", "more": "มากกว่า", + "moreActions": "การดำเนินการเพิ่มเติม", + "moreInfoAbout": "ข้อมูลเพิ่มเติมเกี่ยวกับ {{subject}}", "moreSections": "ส่วนเพิ่มเติม", "page": "หน้าหนังสือ", "retry": "ลองอีกครั้ง", diff --git a/frontend/src/i18n/locales/tr.json b/frontend/src/i18n/locales/tr.json index 1505a53b..63d0b837 100644 --- a/frontend/src/i18n/locales/tr.json +++ b/frontend/src/i18n/locales/tr.json @@ -2764,6 +2764,7 @@ "tryADifferentSearchTermOr": "Farklı bir arama terimi deneyin veya başka bir klasöre göz atın.", "typeZA": "Tip Z-A", "types": "Türler", + "up": "Yukarı", "upDelDeleteF2RenameA": "⌫ Yukarı · Sil Sil · F2 Yeniden Adlandır · ⌘A Tümü", "updatedAt": "{{time}} güncellendi", "upload": "Yüklemek", @@ -2783,7 +2784,6 @@ "alreadyAtTheTopFolder": "Zaten en üst klasördesiniz" }, "fileRow": { - "deselect": "Seçimi kaldır", "rename": "Yeniden isimlendirmek", "select": "Seçme" }, @@ -8049,6 +8049,7 @@ "validatingInvitation": "Davetiye doğrulanıyor…" }, "common": { + "actionTarget": "{{action}}: {{subject}}", "actions": { "add": "Eklemek", "back": "Geri", @@ -8183,6 +8184,8 @@ }, "loading": "Yükleniyor…", "more": "Daha", + "moreActions": "Diğer eylemler", + "moreInfoAbout": "{{subject}} hakkında daha fazla bilgi", "moreSections": "Daha fazla bölüm", "page": "Sayfa", "retry": "Yeniden dene", diff --git a/frontend/src/i18n/locales/vi.json b/frontend/src/i18n/locales/vi.json index b9104d61..f4ac45a7 100644 --- a/frontend/src/i18n/locales/vi.json +++ b/frontend/src/i18n/locales/vi.json @@ -2764,6 +2764,7 @@ "tryADifferentSearchTermOr": "Hãy thử một cụm từ tìm kiếm khác hoặc duyệt qua một thư mục khác.", "typeZA": "Loại Z-A", "types": "Các loại", + "up": "Lên", "upDelDeleteF2RenameA": "⌫ Lên · Xóa · F2 Đổi tên · ⌘A Tất cả", "updatedAt": "Cập nhật {{time}}", "upload": "Tải lên", @@ -2783,7 +2784,6 @@ "alreadyAtTheTopFolder": "Đã ở thư mục trên cùng" }, "fileRow": { - "deselect": "Bỏ chọn", "rename": "Đổi tên", "select": "Lựa chọn" }, @@ -8049,6 +8049,7 @@ "validatingInvitation": "Đang xác thực lời mời…" }, "common": { + "actionTarget": "{{action}}: {{subject}}", "actions": { "add": "Thêm vào", "back": "Mặt sau", @@ -8183,6 +8184,8 @@ }, "loading": "Đang tải…", "more": "Hơn", + "moreActions": "Thêm thao tác", + "moreInfoAbout": "Thông tin thêm về {{subject}}", "moreSections": "Các phần khác", "page": "Trang", "retry": "Thử lại", diff --git a/frontend/src/i18n/locales/zh-Hans.json b/frontend/src/i18n/locales/zh-Hans.json index ebc48a40..312b764e 100644 --- a/frontend/src/i18n/locales/zh-Hans.json +++ b/frontend/src/i18n/locales/zh-Hans.json @@ -2764,6 +2764,7 @@ "tryADifferentSearchTermOr": "尝试不同的搜索词或浏览另一个文件夹。", "typeZA": "Z-A型", "types": "类型", + "up": "上一级", "upDelDeleteF2RenameA": "⌫ 向上 · Del 删除 · F2 重命名 · ⌘A 全部", "updatedAt": "更新于 {{time}}", "upload": "上传", @@ -2783,7 +2784,6 @@ "alreadyAtTheTopFolder": "已在最上层文件夹" }, "fileRow": { - "deselect": "取消选择", "rename": "重命名", "select": "选择" }, @@ -8049,6 +8049,7 @@ "validatingInvitation": "正在验证邀请..." }, "common": { + "actionTarget": "{{action}}:{{subject}}", "actions": { "add": "添加", "back": "返回", @@ -8183,6 +8184,8 @@ }, "loading": "加载中…", "more": "更多的", + "moreActions": "更多操作", + "moreInfoAbout": "关于{{subject}}的更多信息", "moreSections": "更多栏目", "page": "页", "retry": "重试", diff --git a/frontend/src/i18n/locales/zh-Hant.json b/frontend/src/i18n/locales/zh-Hant.json index 77a62ca2..2a4761e5 100644 --- a/frontend/src/i18n/locales/zh-Hant.json +++ b/frontend/src/i18n/locales/zh-Hant.json @@ -2764,6 +2764,7 @@ "tryADifferentSearchTermOr": "嘗試不同的搜尋字詞或瀏覽另一個資料夾。", "typeZA": "類型 Z-A", "types": "類型", + "up": "上一層", "upDelDeleteF2RenameA": "⌫ 向上 · Del 刪除 · F2 重新命名 · ⌘A 全部", "updatedAt": "更新於 {{time}}", "upload": "上傳", @@ -2783,7 +2784,6 @@ "alreadyAtTheTopFolder": "已在最上層資料夾" }, "fileRow": { - "deselect": "取消選擇", "rename": "重新命名", "select": "選擇" }, @@ -8049,6 +8049,7 @@ "validatingInvitation": "正在驗證邀請…" }, "common": { + "actionTarget": "{{action}}:{{subject}}", "actions": { "add": "新增", "back": "回到上一頁", @@ -8183,6 +8184,8 @@ }, "loading": "載入中…", "more": "更多", + "moreActions": "更多操作", + "moreInfoAbout": "關於{{subject}}的更多資訊", "moreSections": "更多區段", "page": "頁", "retry": "重試", diff --git a/frontend/src/pages/SSLCertificates.jsx b/frontend/src/pages/SSLCertificates.jsx index f638f62c..bf59c77e 100644 --- a/frontend/src/pages/SSLCertificates.jsx +++ b/frontend/src/pages/SSLCertificates.jsx @@ -473,7 +473,7 @@ const SSLCertificates = () => { return ( e.stopPropagation()}> - @@ -512,7 +512,7 @@ const SSLCertificates = () => { // bar stays a single row; Install Certbot / New certificate stay out. - diff --git a/frontend/src/pages/StatusPages.jsx b/frontend/src/pages/StatusPages.jsx index dfb21bd5..d5ff6349 100644 --- a/frontend/src/pages/StatusPages.jsx +++ b/frontend/src/pages/StatusPages.jsx @@ -598,7 +598,7 @@ const StatusPages = () => { ))} )} - diff --git a/frontend/src/pages/Terminal.jsx b/frontend/src/pages/Terminal.jsx index cebe7ea4..52798853 100644 --- a/frontend/src/pages/Terminal.jsx +++ b/frontend/src/pages/Terminal.jsx @@ -678,6 +678,7 @@ const JournalTab = () => { value={unitInput} onChange={(e) => setUnitInput(e.target.value)} onKeyDown={(e) => e.key === 'Enter' && applyUnitInput()} + aria-label={t('app.terminal.typeUnitName', 'Type unit name…')} placeholder={t('app.terminal.typeUnitName', 'Type unit name…')} /> diff --git a/frontend/src/pages/Vaults.jsx b/frontend/src/pages/Vaults.jsx index 347598df..66c9e6b5 100644 --- a/frontend/src/pages/Vaults.jsx +++ b/frontend/src/pages/Vaults.jsx @@ -263,7 +263,7 @@ export default function Vaults() { render: (v) => ( e.stopPropagation()}> - + openVault(v.id)}>{t('common.actions.open', 'Open')} diff --git a/frontend/src/styles/_variables.scss b/frontend/src/styles/_variables.scss index 7d74ef01..a0877c0b 100644 --- a/frontend/src/styles/_variables.scss +++ b/frontend/src/styles/_variables.scss @@ -247,7 +247,7 @@ $control-lg: 40px; // that float over the page cast a shadow. No glows. $shadow-raised: var(--shadow-md); // menus, popovers, dropdowns, toasts $shadow-overlay: var(--shadow-lg); // modals, drawers -$focus-ring: 0 0 0 2px var(--accent-bg, rgba(99, 102, 241, 0.35)); +$focus-ring: 0 0 0 2px var(--accent-primary, #6366f1); // Soft 4px halo marking a "you are here" state (stepper current/error step). $halo-accent: 0 0 0 4px var(--accent-bg-soft); $halo-danger: 0 0 0 4px $danger-bg; diff --git a/frontend/src/styles/components/_design-system.scss b/frontend/src/styles/components/_design-system.scss index 7091881a..dc491dbf 100644 --- a/frontend/src/styles/components/_design-system.scss +++ b/frontend/src/styles/components/_design-system.scss @@ -1495,6 +1495,8 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet'); &.is-active { @include status-variant(var(--accent-bright), var(--accent-bg)); } // Overflowed tab — moved into the "More" popover, not rendered inline. &.is-hidden { display: none; } + // __tabs clips overflow, so the default 2px-offset ring would be cut off. + &:focus-visible { outline-offset: -2px; } } // Count pill on a tab (e.g. pending updates). &__badge { @@ -1521,6 +1523,7 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet'); font: inherit; cursor: pointer; &[data-state="open"] { background: var(--surface-hover); color: var(--text); } + &:focus-visible { outline-offset: -2px; } } @media (max-width: 768px) { diff --git a/frontend/src/styles/pages/_servers.scss b/frontend/src/styles/pages/_servers.scss index 0b660107..9c2c63d7 100644 --- a/frontend/src/styles/pages/_servers.scss +++ b/frontend/src/styles/pages/_servers.scss @@ -1345,10 +1345,6 @@ padding: $space-2; color: $text-primary; font-size: $text-xs; - - &:focus { - outline: none; - } } .group-name { diff --git a/frontend/src/styles/pages/_terminal.scss b/frontend/src/styles/pages/_terminal.scss index 2352d6b4..b3a8e6bb 100644 --- a/frontend/src/styles/pages/_terminal.scss +++ b/frontend/src/styles/pages/_terminal.scss @@ -372,7 +372,6 @@ $lk-default: #646b7a; &::placeholder { color: var(--text-faint); } &:focus { - outline: none; border-color: var(--accent-dim); background: var(--surface); } @@ -671,7 +670,6 @@ $lk-default: #646b7a; &:focus, &:hover { border-color: var(--border-strong); - outline: none; } // The Radix trigger (LogToolbar) sizes to its value, not the full-width From b1e686b56236f43ed27d6d68bae4997ee5acadc8 Mon Sep 17 00:00:00 2001 From: Juan Denis Date: Tue, 10 Nov 2026 22:30:40 -0500 Subject: [PATCH 2/2] 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); } }