Skip to content

Commit

Permalink
fix(backoffice-v2): styling for nav items with no children fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Omri-Levy committed Feb 18, 2024
1 parent 13ed41a commit 1bfa700
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const Navbar: FunctionComponent = () => {
href={childNavItem.href}
key={childNavItem.key}
className={ctw(
`gap-x-1 border border-transparent px-1.5 py-2 text-xs capitalize text-[#8990AC] hover:bg-[#EBEEF9] hover:text-[#5E688E] active:bg-[#e0e4f6]`,
`gap-x-1 px-1.5 py-2 text-xs capitalize text-[#8990AC] hover:bg-[#EBEEF9] hover:text-[#5E688E] active:bg-[#e0e4f6]`,
childNavItem.filterId
? {
'font-semibold text-[#20232E]':
Expand Down Expand Up @@ -88,14 +88,16 @@ export const Navbar: FunctionComponent = () => {
href={navItem.href}
key={navItem.key}
className={ctw(
`flex items-center gap-x-1 border border-transparent px-1.5 py-1 text-sm font-semibold capitalize text-[#8990AC] hover:bg-[#EBEEF9] active:border active:border-border`,
`flex items-center gap-x-1 px-1.5 py-1 text-sm font-semibold capitalize text-[#8990AC] hover:bg-[#EBEEF9] hover:text-[#5E688E] active:bg-[#e0e4f6]`,
{
'bg-white text-[#20232E]': navItem.filterId === filterId,
},
)}
>
<span>{navItem.icon}</span>
{navItem.text}
<div className={`flex items-center gap-x-3 text-left`}>
{navItem.icon}
{navItem.text}
</div>
</NavItem>
</ul>
)}
Expand Down

0 comments on commit 1bfa700

Please sign in to comment.