Skip to content

Commit

Permalink
Fixing hamburger color bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoore14 committed Nov 20, 2023
1 parent 4db0106 commit 77fc2ca
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/components/Navbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
import Menu from "./Menu.svelte";
let y:number;
const hamburgerColor = (theme:string):string => {
let color:string
if (theme === 'exp' || theme === 'dark') {
return color = 'white'
}
return color = 'black'
}
</script>

<div class="nav"
Expand All @@ -13,7 +23,7 @@
>
<div class="navbar">
<Logo width={ 175 } height={ 55 } dark={ $themeStore === 'dark' ? true : false }/>
<Hamburger bind:open={ $menuStore } --color={ $themeStore === 'light' || $themeStore === 'exp' ? 'white' : 'black' }/>
<Hamburger bind:open={ $menuStore } --color={ hamburgerColor($themeStore) }/>
</div>
<div class="menubar">
<Menu />
Expand Down

0 comments on commit 77fc2ca

Please sign in to comment.