Skip to content

Commit

Permalink
Fix issue with the tooltip in the dark mode toggle button
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiesigner committed Mar 24, 2021
1 parent 15bc72e commit 0471891
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/js/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,12 @@ $(() => {
}
})

$toggleDarkMode.on('hover', () => {
$toggleDarkMode.on('mouseenter', () => {
toggleDesktopTopbarOverflow(true)
})

$toggleDarkMode.on('mouseleave', () => {
toggleDesktopTopbarOverflow(true)
}, () => {
toggleDesktopTopbarOverflow(false)
})

$closeNotification.on('click', function () {
Expand Down

0 comments on commit 0471891

Please sign in to comment.