Skip to content

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

fix: homepage accessibility fixes (#47729)

Gildas Garcia0eeeb758d8a3
diff --git a/apps/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx b/apps/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx
index 92e32ddd31c..1aa338ab6d2 100644
--- a/apps/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx
+++ b/apps/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx
@@ -70,6 +70,7 @@ export const ProjectCard = ({
<>
<li className="list-none h-min">
<CardButton
+ tabIndex={0}
linkHref={rewriteHref ? rewriteHref : `/project/${projectRef}`}
className="h-44 px-0! group pt-5 pb-0 overflow-hidden relative"
hideChevron
diff --git a/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx b/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
index a6276407bf2..f0df629c90c 100644
--- a/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
+++ b/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
@@ -44,7 +44,6 @@ export const FeedbackDropdown = ({ className }: { className?: string }) => {
>
<PopoverTrigger asChild>
<Button
- asChild
onClick={() => {
setIsOpen((isOpen) => !isOpen)
setStage('select')
diff --git a/apps/studio/components/layouts/Navigation/LayoutHeader/HomeIcon.tsx b/apps/studio/components/layouts/Navigation/LayoutHeader/HomeIcon.tsx
index f3e97c9e12b..61dc4e3ab3f 100644
--- a/apps/studio/components/layouts/Navigation/LayoutHeader/HomeIcon.tsx
+++ b/apps/studio/components/layouts/Navigation/LayoutHeader/HomeIcon.tsx
@@ -35,6 +35,7 @@ export const HomeIcon = ({ className }: { className?: string }) => {
href={href}
onClick={() => track('header_home_logo_clicked')}
className={cn('items-center justify-center shrink-0 flex', className)}
+ tabIndex={0}
>
<img
alt="Supabase"
diff --git a/apps/studio/components/ui/FilterPopover.tsx b/apps/studio/components/ui/FilterPopover.tsx
index 4832d2ca036..f29d00f7ed7 100644
--- a/apps/studio/components/ui/FilterPopover.tsx
+++ b/apps/studio/components/ui/FilterPopover.tsx
@@ -180,7 +180,6 @@ export const FilterPopover = <T extends Record<string, any>>({
<Popover open={open} onOpenChange={setOpen}>
<PopoverTrigger asChild>
<Button
- asChild
disabled={disabled}
variant={buttonType ?? (activeOptions.length > 0 ? 'default' : 'dashed')}
onClick={() => setOpen(false)}