forked from fahrPool/fahrPool
fix: resolve nested <main> landmarks, nav touch targets, focus consistency
This commit is contained in:
parent
ae78bcaab2
commit
06e115cc05
|
|
@ -42,7 +42,7 @@ export default async function AuftragDetailPage({
|
|||
const stornierenAction = stornieren.bind(null, auftrag.id);
|
||||
|
||||
return (
|
||||
<main className="mx-auto max-w-2xl p-4 md:p-8">
|
||||
<div className="mx-auto max-w-2xl p-4 md:p-8">
|
||||
<Card className="mb-6">
|
||||
<div className="mb-2">
|
||||
<StatusBadge status={auftrag.status} />
|
||||
|
|
@ -173,6 +173,6 @@ export default async function AuftragDetailPage({
|
|||
</form>
|
||||
</Card>
|
||||
)}
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ export default async function NeuerAuftragPage({
|
|||
const [orte, fahrzeuge] = await Promise.all([listOrte(), listFahrzeuge()]);
|
||||
|
||||
return (
|
||||
<main className="mx-auto max-w-xl p-4 md:p-8">
|
||||
<div className="mx-auto max-w-xl p-4 md:p-8">
|
||||
<h1 className="mb-6 text-xl font-semibold text-asphalt-grey">Neuen Auftrag anlegen</h1>
|
||||
{error && (
|
||||
<div className="mb-6">
|
||||
|
|
@ -80,6 +80,6 @@ export default async function NeuerAuftragPage({
|
|||
<Button type="submit">Auftrag anlegen</Button>
|
||||
</form>
|
||||
</Card>
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ export default async function AuftraegePage({
|
|||
const kannAnlegen = profileResult.profile.role === "admin" || profileResult.profile.role === "disponent";
|
||||
|
||||
return (
|
||||
<main className="mx-auto max-w-5xl p-4 md:p-8">
|
||||
<div className="mx-auto max-w-5xl p-4 md:p-8">
|
||||
<div className="mb-6 flex items-center justify-between">
|
||||
<h1 className="text-xl font-semibold text-asphalt-grey">Aufträge</h1>
|
||||
{kannAnlegen && (
|
||||
|
|
@ -43,6 +43,6 @@ export default async function AuftraegePage({
|
|||
) : (
|
||||
<AuftragListe titel="Alle Aufträge" auftraege={alle} />
|
||||
)}
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ export default async function LoginPage({
|
|||
const { error } = await searchParams;
|
||||
|
||||
return (
|
||||
<main className="flex flex-1 items-center justify-center px-4 py-8">
|
||||
<div className="flex flex-1 items-center justify-center px-4 py-8">
|
||||
<Card className="w-full max-w-sm">
|
||||
<h1 className="mb-6 text-center text-xl font-semibold text-asphalt-grey">Anmelden</h1>
|
||||
{error && (
|
||||
|
|
@ -30,6 +30,6 @@ export default async function LoginPage({
|
|||
<Button type="submit">Anmelden</Button>
|
||||
</form>
|
||||
</Card>
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,14 +12,23 @@ export function NavLinks({
|
|||
|
||||
return (
|
||||
<nav className={layoutClass}>
|
||||
<Link href="/dashboard" className="text-asphalt-grey hover:text-performance-blue">
|
||||
<Link
|
||||
href="/dashboard"
|
||||
className="flex min-h-11 items-center text-asphalt-grey hover:text-performance-blue focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-performance-blue"
|
||||
>
|
||||
Dashboard
|
||||
</Link>
|
||||
<Link href="/auftraege" className="text-asphalt-grey hover:text-performance-blue">
|
||||
<Link
|
||||
href="/auftraege"
|
||||
className="flex min-h-11 items-center text-asphalt-grey hover:text-performance-blue focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-performance-blue"
|
||||
>
|
||||
Aufträge
|
||||
</Link>
|
||||
{canManageUsers(role) && (
|
||||
<Link href="/nutzerverwaltung" className="text-asphalt-grey hover:text-performance-blue">
|
||||
<Link
|
||||
href="/nutzerverwaltung"
|
||||
className="flex min-h-11 items-center text-asphalt-grey hover:text-performance-blue focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-performance-blue"
|
||||
>
|
||||
Nutzerverwaltung
|
||||
</Link>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
export const FIELD_CLASSES =
|
||||
"min-h-11 w-full rounded-md border border-aluminium-grey px-3 py-2 text-base text-asphalt-grey focus:outline-none focus:ring-2 focus:ring-performance-blue";
|
||||
"min-h-11 w-full rounded-md border border-aluminium-grey px-3 py-2 text-base text-asphalt-grey focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-performance-blue";
|
||||
|
||||
export function FormField({
|
||||
label,
|
||||
|
|
|
|||
Loading…
Reference in New Issue