Skip to content

Commit

Permalink
style: better skip link
Browse files Browse the repository at this point in the history
  • Loading branch information
HRemonen committed Mar 30, 2024
1 parent 6ea6bbb commit 83e4ba9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/common/SkipLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ interface SkipLinkProps {
}

const SkipLink = ({ href }: SkipLinkProps) => (
<a href={href} className='sr-only'>
<a
href={href}
className='sr-only translate-y-[-150%] transform focus:not-sr-only focus:absolute focus:left-1/2 focus:translate-y-0 focus:transition-transform '
>
Skip to content
</a>
)
Expand Down

0 comments on commit 83e4ba9

Please sign in to comment.