Skip to content

Commit

Permalink
Fixing hamburger color bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoore14 authored and RyannosaurusRex committed Dec 2, 2023
1 parent a08bf4b commit ecb1090
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 ecb1090

Please sign in to comment.