From 3b19a5a59dc38c9723b3a31dffbc831ba60f97f3 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 25 May 2022 20:31:12 +0200 Subject: [PATCH] improve a11y jumpers --- copyparty/web/browser.css | 20 ++++++++++++++------ copyparty/web/browser.js | 8 ++++---- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index f41cbe10..703d27b0 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -381,16 +381,24 @@ pre, code, tt, #doc, #doc>code { } .ayjump { position: fixed; + overflow: hidden; + width: 0; + height: 0; +} +html .ayjump:focus { z-index: 80386; + color: #fff; + color: var(--a-hil); + background: #069; + background: var(--bg-u2); + border: .2em solid var(--a); + box-shadow: none; + outline: none; + width: auto; + height: auto; top: .5em; left: .5em; padding: .5em .7em; - background: var(--bg); - opacity: 0; -} -.ayjump:focus { - opacity: 1; - outline: none; } #path, #path * { diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index e8cce017..a354c239 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -43,8 +43,8 @@ var Ls = { "ab_mkdoc": "new markdown doc", "ab_msg": "send msg to srv log", - "ay_path": "jump to folders", - "ay_files": "jump to files", + "ay_path": "skip to folders", + "ay_files": "skip to files", "wt_ren": "rename selected items$NHotkey: F2", "wt_del": "delete selected items$NHotkey: ctrl-K", @@ -366,8 +366,8 @@ var Ls = { "ab_mkdoc": "nytt dokument", "ab_msg": "send melding", - "ay_path": "hopp til mapper", - "ay_files": "hopp til filer", + "ay_path": "gå videre til mapper", + "ay_files": "gå videre til filer", "wt_ren": "gi nye navn til de valgte filene$NSnarvei: F2", "wt_del": "slett de valgte filene$NSnarvei: ctrl-K",