diff --git a/frame.lock b/frame.lock index 0fc9c49..5260720 100644 --- a/frame.lock +++ b/frame.lock @@ -111,11 +111,11 @@ }, { "path": "frame/frame.css", - "sha256": "c7470fdcbdb0ca9c6e2a634b6ec4ba9f1ed87c39b737f91e082b8c6466ab91f4" + "sha256": "ac8c9cfe2f1e7fe0c7c3725c840e0296fae76314521860d7840ce66876f65869" }, { "path": "frame/frame.mjs", - "sha256": "6f01e54838e3593be14ad473467424faf83dfc4c543ea0f9d86655c549cc1b0b" + "sha256": "1d6c3c87cb7e9a1949973c1323d937528d3919d8484e4613766b93f5782cd881" }, { "path": "frame/panels.css", @@ -179,7 +179,7 @@ }, { "path": "site/app.mjs", - "sha256": "b5b30e78ab9b693fd6d29b89b9d2b74542340542864e99e4533a9ced2d987ee0" + "sha256": "65a3d1e3fcc6ed9ddfcbf85477c99a41a94a98502e62de90e7dcce3f860b0ace" }, { "path": "site/guest-worker.mjs", diff --git a/frame/frame.css b/frame/frame.css index b233c1c..70efba8 100644 --- a/frame/frame.css +++ b/frame/frame.css @@ -47,9 +47,9 @@ * edge is the bar's bottom edge. */ --chrome: var(--sidebar, var(--muted)); /* The address: on the light chrome a white field, on the dark one barely - * off the chrome, its hairline drawing it. */ + * off the chrome, its hairline drawing it at 3:1 or more (WCAG 1.4.11). */ --field: light-dark(var(--card), color-mix(in oklab, var(--chrome), var(--foreground) 3%)); - --field-border: var(--border); + --field-border: var(--muted-foreground); --gutter: 0.5rem; --window-radius: 0.75rem; --frame-height: calc(var(--safe-top) + var(--bar-control) + 0.875rem); @@ -230,7 +230,7 @@ svg.gh, svg.fill { fill: currentColor; stroke: none; } * full text colour: white on the dark chrome, near-black on the light, as * Hologram OS draws it. A touch larger than the line icons, so its dots * stay distinct. */ -#home { color: var(--foreground); } +#home { color: var(--foreground); } #home:focus-visible { outline: var(--ring-width) solid var(--ring); outline-offset: var(--ring-offset); border-radius: var(--radius-control); } #home svg.mark { width: 1.25rem; height: 1.25rem; shape-rendering: geometricPrecision; } .ghost.icon:hover { color: var(--foreground); } .ghost.icon:hover::before { background: color-mix(in oklab, var(--chrome), var(--foreground) 7%); } diff --git a/frame/frame.mjs b/frame/frame.mjs index 09178e9..cbf3b26 100644 --- a/frame/frame.mjs +++ b/frame/frame.mjs @@ -1357,7 +1357,7 @@ class PrismFrame extends Element { event.preventDefault(); if (list.hidden) render(); select(active + (event.key === "ArrowDown" ? 1 : -1)); - } else if (event.key === "Escape") { + } else if (event.key === "Tab" && !event.shiftKey) { close(); } else if (event.key === "Escape") { event.preventDefault(); if (input.value !== shown) { input.value = shown; diff --git a/site/app.mjs b/site/app.mjs index c343802..d05479b 100644 --- a/site/app.mjs +++ b/site/app.mjs @@ -236,8 +236,6 @@ function spec() { addEventListener("hashchange", () => set(location.hash === "#spec")); addEventListener("keydown", (event) => { if (event.key === "Escape" && root.classList.contains("spec-open")) set(false); - const typing = /^(INPUT|TEXTAREA|SELECT)$/.test(document.activeElement?.tagName ?? ""); - if (event.key === "." && !typing && !event.metaKey && !event.ctrlKey && !event.altKey) set(!root.classList.contains("spec-open")); }); if (location.hash === "#spec") set(true, false); }