feat(web): focus-visible rings on custom controls; honest authority links + lang group (#52)

This commit is contained in:
2026-06-08 09:42:33 +02:00
parent 4530004d87
commit 57504c941d
9 changed files with 28 additions and 15 deletions
+3 -1
View File
@@ -4,7 +4,9 @@ import { useTranslation } from "react-i18next";
import { useSearch, HttpError } from "../api/queries";
import { useDebouncedValue } from "../lib/use-debounced-value";
import { focusRing } from "../lib/focus-ring";
import { SearchResultRow } from "./search-result-row";
import { cn } from "@/lib/utils";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { ListSkeleton } from "@/components/ui/skeletons";
@@ -71,7 +73,7 @@ export function SearchPanel() {
type="button"
aria-pressed={active}
onClick={() => setVisibility(value)}
className={`rounded-md px-2 py-0.5 ${active ? "bg-primary text-primary-foreground" : "border"}`}
className={cn("rounded-md px-2 py-0.5", focusRing, active ? "bg-primary text-primary-foreground" : "border")}
>
{value === "all" ? t("search.all") : t(`visibility.${value}`)}
</button>