Skip to content

Commit

Permalink
changed classNameOnTabPress to skipToContent
Browse files Browse the repository at this point in the history
Signed-off-by: Yaten Dhingra <yaten598@gmail.com>
  • Loading branch information
yaten2302 committed Jan 10, 2025
1 parent 9f14df0 commit 0b24e44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/site/components/withNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const WithNavBar: FC = () => {
const { replace } = useRouter();
const pathname = usePathname();

const classNameOnTabPress = classNames(
const skipToContent = classNames(
'bg-[#000] text-center font-semibold inline-flex items-center justify-center gap-2 py-2.5',
'absolute left-0 top-0 m-3 -translate-y-16 bg-blue-500 p-3 text-white transition-transform focus:translate-y-0 focus:outline-none'
);
Expand All @@ -30,7 +30,7 @@ const WithNavBar: FC = () => {

return (
<div>
<a className={classNameOnTabPress} href="#main">
<a className={skipToContent} href="#main">
{t('components.containers.navBar.links.skipToContent')}
</a>

Expand Down

0 comments on commit 0b24e44

Please sign in to comment.