make management switch accessible

This commit is contained in:
Eduard Gert
2026-06-18 13:56:42 +02:00
parent cc842f17d5
commit 9cbaf62eda
2 changed files with 11 additions and 2 deletions
@@ -19,7 +19,8 @@ export const SwitchItem = ({ value, children, className }: Props) => {
value={value}
className={cn(
"relative inline-flex items-center justify-center gap-1 rounded-md px-3.5 py-2 text-xs font-semibold",
"outline-none cursor-default",
"cursor-default outline-none",
"focus-visible:ring-2 focus-visible:ring-white/60 focus-visible:ring-offset-2 focus-visible:ring-offset-nb-gray-940",
active
? "text-nb-gray-100"
: "text-nb-gray-400 hover:text-nb-gray-200 active:text-nb-gray-100",