From 62d179ef53ef6ff3cfb27a065ec1a41f78b45e2b Mon Sep 17 00:00:00 2001 From: Nick Vigilante Date: Wed, 25 Nov 2026 17:51:41 +0000 Subject: [PATCH 1/2] fix(docs-theme): show one focus ring on the API property filter The Fumadocs OpenAPI schema panel's "Filter Properties" field draws a 1px ring on its label and relies on a Tailwind outline-none on the input. brand.css is unlayered, so the global input focus outline beat that utility and the focused field got a second, 2px outline inside the ring. The label now carries the one indicator, a 2px outline matching the site's focus style that forced-colors keeps, and the library's box-shadow ring and the input's own outline are dropped. Assisted-by: AI --- packages/docs-theme/scripts/brand.test.mjs | 19 +++++++++++++++++++ packages/docs-theme/src/brand.css | 10 ++++++++++ 2 files changed, 29 insertions(+) diff --git a/packages/docs-theme/scripts/brand.test.mjs b/packages/docs-theme/scripts/brand.test.mjs index 6b0603c5..c5d3a54b 100644 --- a/packages/docs-theme/scripts/brand.test.mjs +++ b/packages/docs-theme/scripts/brand.test.mjs @@ -30,3 +30,22 @@ test("the theme asks for no weight above Medium", () => { }); assert.deepEqual(heavy, []); }); + +const declarationsFor = (selector) => { + const found = {}; + brand.walkRules((rule) => { + if (!rule.selectors.map(normalize).includes(selector)) return; + rule.walkDecls((decl) => { + found[decl.prop] = decl.value; + }); + }); + return found; +}; + +test("the API property filter shows one focus indicator, on its box and not its inner field", () => { + const box = declarationsFor(".coder-api-page label:has(> input:focus-visible)"); + assert.equal(box.outline, "2px solid var(--color-fd-ring)"); + assert.equal(box["box-shadow"], "none"); + const field = declarationsFor(".coder-api-page label > input:focus-visible"); + assert.equal(field.outline, "none"); +}); diff --git a/packages/docs-theme/src/brand.css b/packages/docs-theme/src/brand.css index 906e4b93..943b218b 100644 --- a/packages/docs-theme/src/brand.css +++ b/packages/docs-theme/src/brand.css @@ -1024,6 +1024,16 @@ figure.shiki:not(.not-fumadocs-codeblock *) pre { outline-offset: 2px; } +.coder-api-page label:has(> input:focus-visible) { + outline: 2px solid var(--color-fd-ring); + outline-offset: 1px; + box-shadow: none; +} + +.coder-api-page label > input:focus-visible { + outline: none; +} + .coder-schema-filter { display: grid; gap: 0.375rem; From e7ab9bea85c90d2f3fdcb00b060c3539e7e01876 Mon Sep 17 00:00:00 2001 From: Nick Vigilante Date: Mon, 30 Nov 2026 16:16:55 +0000 Subject: [PATCH 2/2] ci: rebuild the PR preview after its export expired Assisted-by: AI