From 554dad87bb18ece7adf5afd02c050a3520cf759a Mon Sep 17 00:00:00 2001 From: ZverGuy Date: Wed, 4 Nov 2026 18:53:58 +0700 Subject: [PATCH] fix(dashboard): give the range picker the toolbar's focus ring offset The range buttons drew their focus ring flush against the button while the Select and Input next to them offset it, so keyboard focus looked different from one control to the next. The empty metrics hint also repeated its title; it now suggests the one thing that can help. Assisted-by: LLM Signed-off-by: ZverGuy --- .../apps/console/src/components/observability/MetricsView.tsx | 2 +- .../apps/console/src/components/observability/RangePicker.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/system/dashboard/images/console/apps/console/src/components/observability/MetricsView.tsx b/packages/system/dashboard/images/console/apps/console/src/components/observability/MetricsView.tsx index 34d3b33a0..ce7bcbe38 100644 --- a/packages/system/dashboard/images/console/apps/console/src/components/observability/MetricsView.tsx +++ b/packages/system/dashboard/images/console/apps/console/src/components/observability/MetricsView.tsx @@ -62,7 +62,7 @@ export function MetricsView({ scope }: { scope: ObservabilityScope }) { ) : isLoading || !data ? ( ) : data.series.length === 0 ? ( - + ) : ( )} diff --git a/packages/system/dashboard/images/console/apps/console/src/components/observability/RangePicker.tsx b/packages/system/dashboard/images/console/apps/console/src/components/observability/RangePicker.tsx index 95d245176..49abd8b1d 100644 --- a/packages/system/dashboard/images/console/apps/console/src/components/observability/RangePicker.tsx +++ b/packages/system/dashboard/images/console/apps/console/src/components/observability/RangePicker.tsx @@ -18,7 +18,7 @@ export function RangePicker({ aria-pressed={value === key} onClick={() => onChange(key)} className={cn( - "h-full rounded-md px-2.5 text-xs outline-none focus-visible:ring-2 focus-visible:ring-slate-400", + "h-full rounded-md px-2.5 text-xs outline-none focus-visible:ring-2 focus-visible:ring-slate-400 focus-visible:ring-offset-2", value === key ? "bg-slate-900 text-white" : "text-slate-600 hover:bg-slate-100", )} >