The theme defaults (light and dark) come from the 16-color grid, kept as PALETTE in src/lib/color.ts; every text pair passes the admin's 4.5:1 check. Nothing is rounded any more except buttons, which share one btn utility (Poppins Bold, a superellipse corner where the browser has corner-shape) and true dots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
738 B
TypeScript
18 lines
738 B
TypeScript
import { Link } from "react-router-dom";
|
|
import { PaperPlaneTilt } from "@phosphor-icons/react";
|
|
|
|
import { requestLink } from "../data/requestTypes.ts";
|
|
|
|
/* A button to the Request form, opened on one kind of request
|
|
(REQUEST_TYPES). Section manifests place it with `request`. */
|
|
export default function RequestLink({ type, label, className = "" }: { type: string; label: string; className?: string }) {
|
|
return (
|
|
<Link
|
|
to={requestLink(type)}
|
|
className={`inline-flex items-center gap-2 btn border border-brand/40 px-4 py-2 text-sm text-link transition-colors hover:bg-tint print:hidden ${className}`}
|
|
>
|
|
<PaperPlaneTilt aria-hidden="true" weight="bold" className="h-4 w-4" />
|
|
{label}
|
|
</Link>
|
|
);
|
|
}
|