Skip to content

Commit

Permalink
Merge pull request #716 from jembi/fix-navbar-item-highlighting
Browse files Browse the repository at this point in the history
Fix navbar item highlighting
  • Loading branch information
drizzentic authored Nov 6, 2024
2 parents 2e2b0ec + 5737ce8 commit 6c1fad6
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions packages/header-app/src/components/openhim.appbar.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ const navbarTextStyle = {
textTransform: 'capitalize',
fontWeight: '500',
fontFamily: 'Roboto',
color: alpha('#000', 0.6)
fontStyle: 'normal',
order: 1
}


export default function OpenhimAppBar() {
const [pages, setPages] = useState<Page[]>([
{name: 'HOME', link: '#!/portal'},
Expand Down Expand Up @@ -315,7 +317,6 @@ export default function OpenhimAppBar() {
lineHeight: '24px',
textTransform: 'capitalize',
fontWeight: '500',
color: alpha('#000', 0.6),
zIndex: 99
}}
>
Expand Down Expand Up @@ -466,15 +467,16 @@ export default function OpenhimAppBar() {
textTransform: 'none',
fontWeight: 500,
marginRight: '20px',

color: '#049D84',
fontFamily:"Roboto",
lineHeight: '24px'
}
: {
textTransform: 'none',
fontWeight: 500,
marginRight: '20px',

color: '#00000099'
fontFamily:"Roboto",
color: 'rgba(0, 0, 0, 0.6)'
}
}
href={page.link}
Expand Down Expand Up @@ -502,15 +504,17 @@ export default function OpenhimAppBar() {
textTransform: 'capitalize',
fontWeight: 500,
marginRight: '20px',
color: '#388e3c'
fontFamily:"Roboto",
color: '#049D84'
}
: {
display: 'flex',
alignItems: 'center',
textTransform: 'capitalize',
fontWeight: 500,
marginRight: '20px',
color: '#00000099'
fontFamily:"Roboto",
color: 'rgba(0, 0, 0, 0.6)'
}
}
>
Expand Down

0 comments on commit 6c1fad6

Please sign in to comment.