Skip to content

Commit 0401e7e

Browse files
Merge pull request #1059 from DonovanAndrews300/donovan/remove-tab-item-space
Fixes Styling Issues Within Header
2 parents ef58cb7 + 5da73dd commit 0401e7e

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

src/app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
}
154154

155155
.linkIcon {
156-
@apply w-5 h-5 mr-2;
156+
@apply mr-2;
157157
transform: translateZ(0);
158158
-webkit-transform: translateZ(0);
159159
}

src/components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const Header = () => (
4444
as="nav"
4545
aria-label="primary"
4646
>
47-
<ul className="flex flex-row">
47+
<ul className="flex flex-row items-center justify-center">
4848
<IconLink
4949
icon={<PiBinoculars className="h-6 w-6" />}
5050
text="Find Properties"

src/components/IconLink.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ function IconLink({ icon, text, href }: IconLinkProps) {
1717
isActive={pathname === href}
1818
aria-current={pathname === href ? 'page' : undefined}
1919
key={text}
20-
className={pathname === href ? 'active-state-nav' : ''}
20+
className={
21+
pathname === href
22+
? 'active-state-nav flex items-center justify-center'
23+
: ''
24+
}
2125
>
2226
<Button
2327
as={Link}
@@ -27,7 +31,9 @@ function IconLink({ icon, text, href }: IconLinkProps) {
2731
// *only include if there will be no text link present* aria-label={text}
2832
startContent={<div className="linkIcon">{icon}</div>}
2933
className={
30-
pathname === href ? 'active-state-nav' : 'iconLink bg-color-none'
34+
pathname === href
35+
? 'active-state-nav gap-0'
36+
: 'iconLink bg-color-none gap-0'
3137
}
3238
// className="flex text-gray-900 items-center active:bg-[#E9FFE5] active:text-green-700 focus:text-green-700 focus:bg-[#E9FFE5] hover:gray-100 bg-color-none hover:bg-gray-10"
3339
>

0 commit comments

Comments
 (0)