mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-22 12:43:32 +09:00
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 <maximbel2003@gmail.com>
This commit is contained in:
1 parent
6740ed4458
commit
554dad87bb
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -62,7 +62,7 @@ export function MetricsView({ scope }: { scope: ObservabilityScope }) {
|
||||
) : isLoading || !data ? (
|
||||
<EmptyState busy title="Loading…" className={CHART_SLOT} />
|
||||
) : data.series.length === 0 ? (
|
||||
<EmptyState title="No data for this range." hint="Nothing was recorded in the selected range." className={CHART_SLOT} />
|
||||
<EmptyState title="No data for this range." hint="Try a longer range." className={CHART_SLOT} />
|
||||
) : (
|
||||
<TimeSeriesChart data={data} format={panel.format} />
|
||||
)}
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ export function RangePicker<K extends string>({
|
||||
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",
|
||||
)}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user