Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

Fix a11y findings to clear shadscan floor

kapishdima8d2e751f8500
diff --git a/app/(home)/components/header-nav.tsx b/app/(home)/components/header-nav.tsx
index 0b3dd309..bb058280 100644
--- a/app/(home)/components/header-nav.tsx
+++ b/app/(home)/components/header-nav.tsx
@@ -80,6 +80,7 @@ export function NavMobile({ links }: { links: NavLink[] }) {
render={
<Link
href={link.href}
+ aria-label={link.label}
className="py-3 text-foreground/90 transition-colors hover:text-foreground focus-visible:text-foreground focus-visible:outline-none"
/>
}
diff --git a/app/(home)/components/header-parts.tsx b/app/(home)/components/header-parts.tsx
index 6f418940..a8a5436d 100644
--- a/app/(home)/components/header-parts.tsx
+++ b/app/(home)/components/header-parts.tsx
@@ -73,6 +73,7 @@ export function HeaderActions() {
render={
<Link
href="/docs/getting-started/introduction"
+ aria-label="Get started"
className={cn(
buttonVariants({ size: "lg" }),
"h-11 w-full rounded-full",
diff --git a/app/(home)/showcases/[slug]/page.tsx b/app/(home)/showcases/[slug]/page.tsx
index 471dc7c7..c6f58ca3 100644
--- a/app/(home)/showcases/[slug]/page.tsx
+++ b/app/(home)/showcases/[slug]/page.tsx
@@ -78,7 +78,7 @@ export default async function ShowcasePage({ params }: PageProps) {
/>
}
>
- <GitHubIcon className="size-4" />
+ <GitHubIcon data-icon="inline-start" className="size-4" />
View source
</Button>
) : null}
diff --git a/components/docs/component-customizer.tsx b/components/docs/component-customizer.tsx
index c94c271d..2e7977c2 100644
--- a/components/docs/component-customizer.tsx
+++ b/components/docs/component-customizer.tsx
@@ -120,7 +120,7 @@ function NumberInputPill({
commit(e.target.value);
}}
onBlur={() => setDraft(String(committed.current))}
- className="min-w-0 flex-1 bg-transparent text-right font-mono text-base font-medium text-foreground outline-none placeholder:text-muted-foreground/50 sm:text-sm [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"
+ className="min-w-0 flex-1 bg-transparent text-right font-mono text-base font-medium text-foreground outline-none focus-visible:ring-2 focus-visible:ring-ring/40 placeholder:text-muted-foreground/50 sm:text-sm [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"
/>
</div>
);
@@ -230,7 +230,7 @@ function Control({
autoComplete="off"
value={value as string}
onChange={(e) => onChange(e.target.value)}
- className="min-w-0 flex-1 bg-transparent text-right font-mono text-base font-medium text-foreground outline-none placeholder:text-muted-foreground/50 sm:text-sm"
+ className="min-w-0 flex-1 bg-transparent text-right font-mono text-base font-medium text-foreground outline-none focus-visible:ring-2 focus-visible:ring-ring/40 placeholder:text-muted-foreground/50 sm:text-sm"
/>
</div>
);
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index 545fe3cc..a7316ff8 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -793,6 +793,7 @@ export function IconsGallery() {
<Search className="pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground" />
<input
type="search"
+ aria-label="Filter icons"
value={query}
onChange={(event) => setQuery(event.target.value)}
placeholder="Filter icons…"
diff --git a/components/docs/studio-actions.tsx b/components/docs/studio-actions.tsx
index 6c1c6aa1..74c71049 100644
--- a/components/docs/studio-actions.tsx
+++ b/components/docs/studio-actions.tsx
@@ -58,7 +58,11 @@ export function StudioActions({
return (
<div className="flex min-w-0 items-center gap-1.5">
{message ? (
- <span className="truncate text-xs text-muted-foreground">
+ <span
+ role="status"
+ aria-live="polite"
+ className="truncate text-xs text-muted-foreground"
+ >
{message}
</span>
) : null}
diff --git a/components/ui/accordion.tsx b/components/ui/accordion.tsx
index cab60b4b..2df916ed 100644
--- a/components/ui/accordion.tsx
+++ b/components/ui/accordion.tsx
@@ -35,7 +35,7 @@ function AccordionTrigger({
<AccordionPrimitive.Trigger
data-slot="accordion-trigger"
className={cn(
- "group/accordion-trigger relative flex flex-1 items-start justify-between gap-6 border border-transparent p-4 text-left text-sm font-medium transition-all outline-none hover:underline aria-disabled:pointer-events-none aria-disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground",
+ "group/accordion-trigger relative flex flex-1 items-start justify-between gap-6 border border-transparent p-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-2 focus-visible:ring-ring/40 aria-disabled:pointer-events-none aria-disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground",
className,
)}
{...props}