@@ -245,6 +249,8 @@ export function PdPlanPanel({ onFinished }: PdPlanPanelProps) {
onClick={() => {
setConsoleOpen(!consoleOpen)
}}
+ // Where the drawer sends focus when it closes and nothing opened it.
+ data-console-toggle
className="rounded-pd border border-border px-3 py-1 text-data"
>
{t('plan.console')}
diff --git a/ui/src/screens/PdSearch.tsx b/ui/src/screens/PdSearch.tsx
index a504cb4..39229ae 100644
--- a/ui/src/screens/PdSearch.tsx
+++ b/ui/src/screens/PdSearch.tsx
@@ -108,7 +108,7 @@ export function PdSearch() {
earlier state to differ from. */}
{/* Warming is a state, not a failure: the index is 864k names and takes ~140 ms to
load, and saying so beats a field that silently returns nothing. */}
diff --git a/ui/src/styles.css b/ui/src/styles.css
index 75d64d4..d981059 100644
--- a/ui/src/styles.css
+++ b/ui/src/styles.css
@@ -161,9 +161,12 @@
/* `page` is the sidebar's active tab. The rule matched `'true'` alone, so the one thing that
* said which screen is showing was drawn like every other tab. */
- [aria-selected='true'],
- [aria-current='true'],
- [aria-current='page'] {
+ /* `:not(:focus-visible)`: this rule follows the focus ring's at equal specificity, so a
+ * focused selection — the current tab, the selected hit — got this 1px line in place of its
+ * 2px ring. */
+ [aria-selected='true']:not(:focus-visible),
+ [aria-current='true']:not(:focus-visible),
+ [aria-current='page']:not(:focus-visible) {
outline: 1px solid Highlight;
}