Skip to content

Commit

Permalink
fix: add focus outline to skip link (#5)
Browse files Browse the repository at this point in the history
this pr adds a focus outline to the skip link.
  • Loading branch information
stefanprobst authored Jan 15, 2025
2 parents c1a0e5d + 34cf8db commit 0dcf307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/skip-link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function SkipLink(props: Readonly<SkipLinkProps>): ReactNode {

return (
<Link
className="fixed z-50 m-1 translate-y-[calc(-100%-0.25rem)] rounded bg-background-inverse px-4 py-3 text-text-inverse-strong transition focus-visible:translate-y-0"
className="focus-visible:focus-outline fixed z-50 m-1 translate-y-[calc(-100%-0.25rem)] rounded bg-background-inverse px-4 py-3 text-text-inverse-strong transition focus-visible:translate-y-0"
href={createHref({ hash: targetId })}
id={id}
onPress={onPress}
Expand Down

0 comments on commit 0dcf307

Please # to comment.