@@ -130,6 +496,7 @@ const surfaces: Surface[] = [
keys: "Click above the list, press Tab.",
sizing: "Any width. The trigger sets outline: none and nothing replaces it.",
source: "ui/src/data-display/accordion/accordion.css:58",
+ fix: "The trigger draws the 2px ring inset (offset -2px), since the list clips a full-width row.",
render: () => (
@@ -143,16 +510,357 @@ const surfaces: Surface[] = [
),
},
+ {
+ name: "New timeline tool row: background only",
+ failure: "Inconsistent",
+ target: '[data-slot="collapsible-trigger"]',
+ keys: "Turn on the new timeline, click the response above a tool row, press Tab.",
+ sizing: "Any width. The trigger also holds the gap below an open row.",
+ source: "session-ui/src/timeline-next/timeline-next.css",
+ fix: "Keyboard focus rings the row's line of text (tool-trigger) at the default 2px offset with a 4px radius, instead of filling it with the hover background. A ring on the trigger itself would take in the gap below an open row.",
+ render: () => (
+
+
+
+
+ Read src/session/timeline.tsx
+
+
+ Content
+
+
+ ),
+ },
+ {
+ name: "Compaction divider: thin accent ring",
+ failure: "Inconsistent",
+ target: '[data-slot="session-compaction-divider"]',
+ keys: "Click the message above a compaction, press Tab.",
+ sizing: "Any width.",
+ source: "session-ui/src/components/session-compaction.css",
+ fix: "Was 1px in --v2-text-text-accent. Now the shared 2px ring in the focus colour at a 2px offset.",
+ render: () => (
+
+
+ Compacted
+
+
+ ),
+ },
+ {
+ name: "Session link in a response: ring in the text colour",
+ failure: "Inconsistent",
+ target: ".markdown-session-link",
+ keys: "Click the response text, press Tab.",
+ sizing: "Any width.",
+ source: "session-ui/src/components/markdown.css",
+ fix: "Was 2px in currentColor, so it took the link's colour. Now the shared focus colour at a 2px offset.",
+ render: () => (
+
+ ),
+ },
+ {
+ name: "Sources chip: 1px ring",
+ failure: "Inconsistent",
+ target: '[data-component="sources-chip"]',
+ keys: "Turn on the Sources experiment, click a response that searched the web, press Tab.",
+ sizing: "Any width.",
+ source: "session-ui/src/sources/sources.css",
+ fix: "The chip was 1px at a 1px offset, and the panel's rows 1px inset. Now the shared 2px ring: outset on the chip, inset (-2px) on the rows, which fill the panel's scrolling list.",
+ render: () => (
+
+ 3 sources
+
+ ),
+ },
+ {
+ name: "Question progress: ring runs into the next segment",
+ failure: "Clipped",
+ target: '[data-slot="question-progress-segment"]',
+ keys: "Open a multi-question prompt, Tab to the progress segments.",
+ sizing: "Any width. Segments sit 2px apart.",
+ source: "session-ui/src/components/question-prompt.css, question-prompt-experimental.css",
+ fix: "Was 2px at a 1px offset, which overlapped the neighbouring segment. Now inset (-2px), inside the segment.",
+ render: () => (
+
+ ),
+ },
],
also: [
- "Shift+Tab from the session header's More actions to Copy response leaves it under the sticky header.",
- "The new timeline's command group loses the bottom of its shadow.",
- "The timeline ScrollView viewport and the diff viewer take focus with nothing visible.",
+ "Fixed: the new timeline's command group lost the bottom of its shadow. The 5px row clip margin above covers it.",
],
},
+ {
+ name: "Home",
+ cases: [
+ {
+ name: "Home search results: Shift+Tab reaches a background-only option",
+ failure: "Invisible",
+ target: "input",
+ keys: "Type a Home search. Use ArrowDown to move the highlight and Shift+Tab to leave the field.",
+ sizing: "Results are controlled by the search input's active descendant.",
+ source: "app/src/home/sessions/view.tsx, view.css",
+ fix: "Remove result buttons from the Tab order. Give the active option a visible system highlight in forced colours.",
+ render: () =>
,
+ },
+ {
+ name: "Home viewport: invisible Tab stop",
+ failure: "Invisible",
+ target: '.scroll-view__viewport[tabindex="0"]',
+ keys: "Tab to the scrollable viewport, then use ArrowDown or PageDown. With no overflow, Tab skips the viewport.",
+ sizing: "The viewport only needs a keyboard stop when it can scroll.",
+ source: "ui/src/components/scroll-view.tsx, scroll-view.css",
+ fix: "Only include the viewport in the Tab order when it overflows, and draw the ring inside its edge.",
+ render: () => (
+
+
+ Recent sessions
+ Review focus states
+ Check mobile layout
+ Update the component lab
+
+
+ ),
+ },
+ ...(["Projects", "opencode"] as const).map(
+ (label): Case => ({
+ name: `Side tabs: ${label === "Projects" ? "Projects heading" : "project row"} has only a background change`,
+ failure: "Inconsistent",
+ target: '[data-slot="sidebar-project-row"] > button',
+ keys: `Open Side tabs and Tab to ${label}. Tab again to focus the adjacent icon button independently.`,
+ sizing: "The row spans the sidebar, including the trailing action.",
+ source: "app/src/shell/titlebar/sidebar-organized.tsx, sidebar-customized.tsx, tab-nav.css",
+ fix: "Draw the inset ring around the whole row when its main button has keyboard focus. The trailing button keeps its own ring.",
+ render: () => (
+
+
+ {label === "Projects" ? null : }
+ {label}
+
+
}
+ aria-label={label === "Projects" ? "Add project" : "More options"}
+ />
+
+ ),
+ }),
+ ),
+ {
+ name: "Recent sessions: keyboard focus looks like hover",
+ failure: "Inconsistent",
+ target: '[data-component="home-session-row"]',
+ keys: "In Home, Tab from New session into Recent sessions. Click the example or move the pointer over it to compare.",
+ sizing: "Each session is its own full-width Tab stop.",
+ source: "app/src/home/sessions/view.tsx, view.css",
+ fix: "Use a rounded 2px inset ring for the session button. Hover keeps its background; search results, row actions and inline rename keep their existing focus styles.",
+ render: () => (
+
+
+
+ Test message
+ opencode
+
+
+ ),
+ },
+ {
+ name: "Search sessions: Tab shows only a caret",
+ failure: "Invisible",
+ target: "input",
+ keys: "Focus the preceding button and Tab into Search sessions. Click the field to clear the ring.",
+ sizing: "The field spans the Home results column. The ring belongs on the field, not just its editable text.",
+ source: "app/src/home/sessions/view.tsx, view.css, ui/src/context/field-focus.tsx",
+ fix: "Tab, Find and other non-pointer focus entry draw the shared outset ring around the field. Click-to-type keeps the field background and caret without the ring.",
+ render: (forced) =>
,
+ },
+ {
+ name: "Project row: focus looks like selection",
+ failure: "Inconsistent",
+ target: '[data-component="home-project-row"]',
+ keys: "In Home › Projects, Tab from Add project to a project row.",
+ sizing: "The row fills the scrolling list, and its hover actions sit over its trailing edge.",
+ source: "app/src/home/projects/view.tsx, view.css",
+ fix: "Replace the faint shadow with a 2px inset ring around the selected or unselected row. Paint it above the hover actions without blocking clicks.",
+ render: () => (
+
+
+
+
+ opencode
+
+
+ }
+ aria-label="More options"
+ />
+
+
+
+ ),
+ },
+ ...(["Settings", "Help"] as const).map(
+ (action): Case => ({
+ name: `${action}: barely visible keyboard focus`,
+ failure: "Inconsistent",
+ target: "button",
+ keys: `Tab to ${action} below the Projects list or in the Home footer.`,
+ sizing: "The same control is used in the sidebar and the narrower footer.",
+ source: "app/src/home/projects/view.tsx, view.css",
+ fix: "Replace the faint shadow with the shared 2px keyboard ring, inset so the edges stay visible.",
+ render: () => (
+
+
+ {action}
+
+ ),
+ }),
+ ),
+ ],
+ also: [],
+ },
+ {
+ name: "Browser device toolbar",
+ cases: (["width", "height"] as const).map((axis) => ({
+ name: `${axis === "width" ? "Side" : "Bottom"} resize grip: the preview clips the keyboard ring`,
+ failure: "Clipped",
+ target: `[data-axis="${axis}"]`,
+ keys: "Enable the browser device toolbar, choose a device size, and Tab to the resize grip.",
+ sizing: "The preview clips at its outer edge. Each grip has a 14px hit area.",
+ source: "gui-plugins/src/browser/bar.css",
+ fix: "Draw the shared 2px ring inset around the rounded hit area so the preview cannot clip it. The grip still resizes the same way.",
+ render: () => (
+
+ ),
+ })),
+ also: [],
+ },
{
name: "Right panel",
cases: [
+ {
+ name: "Files and Review tree: ArrowDown moves focus without a visible cue",
+ failure: "Invisible",
+ target: '[data-slot="lab-tree-host"]',
+ keys: "Tab to a file tree and use the arrow keys. The focus outline follows the row without changing selection.",
+ sizing: "The tree rows are full width inside the plugin's shadow root.",
+ source: "gui-plugins/src/file/pierre-tree.tsx, tree-focus.css",
+ fix: "Use the shared inset ring on the keyboard-focused row, independently of the selected background.",
+ render: () =>
,
+ },
+ {
+ name: "Review diff viewer: no visible keyboard focus",
+ failure: "Invisible",
+ target: '[data-component="file"]',
+ keys: "Open a changed file in Review and Tab from the diff toolbar to the code.",
+ sizing: "The file viewer sits inside a scrolling preview.",
+ source: "session-ui/src/components/file.tsx, file.css",
+ fix: "Keep keyboard access to the diff and paint the shared inset ring above the code, clear of the scrollport edge.",
+ render: () => (
+
+
+
+ ),
+ },
+ {
+ name: "Git changes: file-tree toggle covers the start of the ring",
+ failure: "Occluded",
+ target: '[data-component="select-v2"]',
+ keys: "In Review, focus the file-tree toggle and press Tab.",
+ sizing: "The toggle ends 2px before the selector, in both the sidebar and the collapsed toolbar.",
+ source: "session-ui/src/v2/components/session-review-v2.css",
+ fix: "Draw the mode selector's ring inset so the floating toggle cannot cover it.",
+ render: () => (
+
+ undefined} />}
+ sidebar={
+ undefined}
+ title={
+ undefined}
+ />
+ }
+ />
+ }
+ />
+
+ ),
+ },
{
name: "Tab strip: End puts the last tab under the sticky Add tab",
failure: "Occluded",
@@ -161,6 +869,7 @@ const surfaces: Surface[] = [
sizing: "Side panel 360px wide with 13 tabs open.",
source:
"app/src/runtime/plugin/side-region.tsx:333 (sticky +), ui tabs.css:605–621 (strip mask), tabs.css:100 (no ring)",
+ fix: 'Kobalte moved focus without scrolling, so End left the tab where it was. The strip now scrolls a keyboard-focused tab into view (tab-strip-scroll.ts), and its scroll-padding-inline, --tab-strip-add plus the 24px fade (tabs.css), keeps it clear of the "+". The ring covers the whole tab, close button included.',
from: { scroller: '[data-slot="tabs-list"]', edge: "start" },
render: () =>
,
},
@@ -171,6 +880,7 @@ const surfaces: Surface[] = [
keys: "From any tab, press Home.",
sizing: "Any panel width.",
source: "ui/src/navigation/tabs/tabs.css:100–103 (outline: none, box-shadow: none)",
+ fix: "The tab draws the 2px ring inset (offset -2px) around its label and close button, since the strip scrolls and would clip a ring outside.",
from: { scroller: '[data-slot="tabs-list"]', edge: "end" },
render: () =>
,
},
@@ -179,13 +889,108 @@ const surfaces: Surface[] = [
"Review header at a 164px preview: Previous and Next overlap the line buttons, and Split diff is cut off.",
"CSV preview at 80px: Copy content overflows the header.",
"Line comment More options runs past the panel edge at 360px.",
- "Files and Review trees: ArrowDown from the selected file moves focus with no visible change (pierre-tree.tsx:41–42, 84–92).",
- "Git changes inline select, and the source and diff viewers: no visible focus (same pattern as the Language select below).",
],
},
{
name: "Settings",
cases: [
+ {
+ name: "Interface layout: selection and focus use the same blue",
+ failure: "Inconsistent",
+ target: "input",
+ keys: "Tab onto the selected Interface layout card.",
+ sizing: "The card has a separate selected border and an outset focus ring.",
+ source: "app/src/settings/general/interface-mode.css",
+ fix: "Selection is a 2px neutral border, a check outside the corner and a faded sketch on the other cards. Blue is only the keyboard ring.",
+ render: () =>
,
+ },
+ ...(["Work account", "Add account"] as const).map(
+ (label): Case => ({
+ name: `Connect: ${label} has only a background change`,
+ failure: "Inconsistent",
+ target: "button",
+ keys: "Open a provider with saved accounts in Connect and Tab through the accounts and Add account.",
+ sizing: "Each button is a separate Tab stop in the scrolling dialog.",
+ source: "app/src/providers/connect/dialog.tsx",
+ fix: "Show a shared inset ring, rather than reusing the hover background as the only cue.",
+ render: () => (
+
+ {label}
+
+ ),
+ }),
+ ),
+ {
+ name: "Extensions tab panel: the ring loses both sides",
+ failure: "Clipped",
+ target: '[role="tabpanel"]',
+ keys: "Open Settings › Extensions › MCPs and Tab from the selected tab onto its panel.",
+ sizing: "The panel stretches edge to edge inside a clipping tabs root.",
+ source: "app/src/settings/settings.css (.settings-subtabs)",
+ fix: "Keep the tab panel reachable, including when it has no interactive content. Draw its ring inset, independently of the rings on its children.",
+ render: () => (
+
+
+
+ MCPs
+ Plugins
+
+
+
+ Available to all projects
+ Manage in opencode.json
+
+
+ Manage plugins
+
+
+ ),
+ },
+ {
+ name: "Connect provider dialog: breadcrumb focus only changes text colour",
+ failure: "Inconsistent",
+ target: "nav button",
+ keys: "Open Connect, choose a provider, then Tab or Shift+Tab to the Connect breadcrumb.",
+ sizing: "The breadcrumb is a compact text button, not a full-width row.",
+ source: "app/src/providers/connect/dialog.tsx",
+ fix: "Both interactive breadcrumbs use the shared outset keyboard ring with a 4px radius. Non-interactive breadcrumb labels remain plain text.",
+ render: () => (
+
+
+
+ Connect
+
+
+ OpenCode Go
+
+
+ ),
+ },
+ {
+ name: "Providers: Show more providers draws a full-width square ring",
+ failure: "Inconsistent",
+ target: ".settings-providers-view-all",
+ keys: "In Settings › Providers, Tab from the last Connect button to Show more providers.",
+ sizing: "The section is a column; by default its children stretch across the panel.",
+ source: "app/src/settings/settings.css (.settings-providers-view-all)",
+ fix: "Size the text action to its label, give it a 4px corner radius, and use the shared 2px outset ring.",
+ render: () => (
+
+
Popular providers
+
+
+ Connect
+
+
+
+ Show more providers
+
+
+ ),
+ },
{
name: "Models: Shift+Tab hides the focused switch under the sticky header",
failure: "Occluded",
@@ -193,35 +998,34 @@ const surfaces: Surface[] = [
keys: "Click the last row's name, then press Shift+Tab until a row scrolls up.",
sizing: "Audited at 1280×800 and 390×680. The panel has no scroll padding for its sticky header.",
source: "app/src/settings/settings.css:587–611 (.settings-panel, sticky .settings-tab-header)",
+ fix: "tab-header.ts writes the header's height to --settings-tab-header-height; focusable controls in .settings-tab-body take it, plus the 24px fade, as their top scroll-margin.",
from: { scroller: ".settings-panel", edge: "end" },
+ render: () =>
,
+ },
+ {
+ name: "Extensions: Check for updates and How to add skills cut at the right",
+ failure: "Clipped",
+ target: ".settings-extension-link",
+ keys: "Open Extensions › Skills (or Plugins), press Tab until the link (or Check for updates) is focused.",
+ sizing: "Any width. Both sit flush with the sub-tab panel's end edge.",
+ source:
+ "ui tabs-current.css (tabs-v2 root overflow: clip), settings.css (.settings-subtabs panel overflow: auto), extensions.tsx",
+ fix: "The tabs root clips with a 5px overflow-clip-margin, and the scrolling sub-tab panel pads its sides by 5px and takes it back with a negative margin, so a ring at either edge shows.",
render: () => (
-
-