Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(www): name the /features page button controls (#49343)

Miranda Limonczenko21fccb0ecd7e
diff --git a/apps/www/components/PrevNextFeatureNav.tsx b/apps/www/components/PrevNextFeatureNav.tsx
index d5705c49ef2..a70f0242e31 100644
--- a/apps/www/components/PrevNextFeatureNav.tsx
+++ b/apps/www/components/PrevNextFeatureNav.tsx
@@ -23,8 +23,8 @@ interface Props {
}
const buttonClassName =
- 'relative z-10 flex items-center gap-1 px-2 pointer-events-auto overflow-hidden h-[30px]! min-w-[30px]! max-w-[30px]! py-1 justify-center rounded-full border bg-default hover:bg-surface-100 hover:text-foreground hover:border-foreground-lighter transition-all'
-const iconClassName = 'className="w-4 h-4 shrink-0'
+ 'relative z-10 flex items-center gap-1 px-2 cursor-pointer pointer-events-auto overflow-hidden h-[30px]! min-w-[30px]! max-w-[30px]! py-1 justify-center rounded-full border bg-default hover:bg-surface-100 hover:text-foreground hover:border-foreground-lighter transition-all'
+const iconClassName = 'w-4 h-4 shrink-0'
const PrevNextFeatureNav: React.FC<Props> = ({
className,
@@ -69,6 +69,7 @@ const PrevNextFeatureNav: React.FC<Props> = ({
<DropdownMenu open={open} onOpenChange={setOpen}>
<DropdownMenuTrigger className={cn(buttonClassName, 'p-0')}>
<List className={iconClassName} />
+ <span className="sr-only">Browse all features</span>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" alignOffset={-38} className="pb-0">
<DropdownMenuItem asChild className="text-foreground-lighter p-0">
diff --git a/apps/www/pages/features/[slug].tsx b/apps/www/pages/features/[slug].tsx
index 861850f92a2..b47ffd0b964 100644
--- a/apps/www/pages/features/[slug].tsx
+++ b/apps/www/pages/features/[slug].tsx
@@ -107,6 +107,7 @@ const FeaturePage: React.FC<FeaturePageProps> = ({ feature, prevFeature, nextFea
<Link href="/features" passHref>
<Badge className="p-0 h-[22px] w-[22px] rounded-full flex items-center justify-center text-foreground-lighter hover:text-foreground hover:border-foreground-lighter">
<ChevronLeft className="w-3.5 h-3.5" />
+ <span className="sr-only">Back to all features</span>
</Badge>
</Link>
{feature.products.map((product) => (
@@ -114,6 +115,7 @@ const FeaturePage: React.FC<FeaturePageProps> = ({ feature, prevFeature, nextFea
key={`product-${product}`}
href={`/features?products=${product}`}
className="inline-flex"
+ aria-label={`All ${product} features`}
passHref
>
<Badge