Skip to content

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

fix(ui): Make heading anchors focusable (#43058)

Jeremias Menichellicff64ea1a96d
diff --git a/packages/ui/src/components/CustomHTMLElements/Heading.tsx b/packages/ui/src/components/CustomHTMLElements/Heading.tsx
index 1b6a85586a0..5594c9e2733 100644
--- a/packages/ui/src/components/CustomHTMLElements/Heading.tsx
+++ b/packages/ui/src/components/CustomHTMLElements/Heading.tsx
@@ -58,10 +58,9 @@ const Heading = forwardRef(
{anchor && (
<a
href={link}
- aria-hidden="true"
- className="ml-2 opacity-0 group-hover:opacity-100 transition"
+ className="ml-2 opacity-0 focus:opacity-100 group-hover:opacity-100 transition"
>
- <span aria-hidden="true">#</span>
+ #
</a>
)}
</HeadingTag>