Polish workbench keyboard focus
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-06-20 02:18:33 +02:00
parent 053917d6fc
commit 5814afb3b5
8 changed files with 109 additions and 8 deletions
+6 -4
View File
@@ -489,6 +489,7 @@ function App(): JSX.Element {
className={item.key === activeWorkspace ? 'nav-item nav-item-active' : 'nav-item'}
onClick={() => setActiveWorkspace(item.key)}
aria-current={item.key === activeWorkspace ? 'page' : undefined}
aria-label={`Open ${item.label} workspace: ${item.description}`}
data-testid={`workspace-nav-${item.key}`}
>
<span>{item.label}</span>
@@ -515,6 +516,7 @@ function App(): JSX.Element {
className={item.key === activeWorkspace ? 'command-chip command-chip-active' : 'command-chip'}
onClick={() => setActiveWorkspace(item.key)}
aria-pressed={item.key === activeWorkspace}
aria-label={`Switch to ${item.label} workspace`}
>
{item.label}
</button>
@@ -544,16 +546,16 @@ function App(): JSX.Element {
</p>
</div>
<div className="quick-action-grid">
<button type="button" onClick={() => setActiveWorkspace('data')}>
<button type="button" onClick={() => setActiveWorkspace('data')} aria-label="Open data setup workspace">
Open data setup
</button>
<button type="button" onClick={() => setActiveWorkspace('map')}>
<button type="button" onClick={() => setActiveWorkspace('map')} aria-label="Inspect map workspace">
Inspect map
</button>
<button type="button" onClick={() => setActiveWorkspace('analysis')}>
<button type="button" onClick={() => setActiveWorkspace('analysis')} aria-label="Review QA/QC workspace">
Review QA/QC
</button>
<button type="button" onClick={() => setActiveWorkspace('exports')}>
<button type="button" onClick={() => setActiveWorkspace('exports')} aria-label="Manage exports workspace">
Manage exports
</button>
</div>