Skip to content

Commit

Permalink
Merge pull request #129 from pavece/sync-calendar-modal-theme
Browse files Browse the repository at this point in the history
Sync calendar modal with color theme
  • Loading branch information
midudev authored Feb 25, 2024
2 parents f33a52a + 861a599 commit 901e0d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion public/css/add-to-calendar.css

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

3 changes: 3 additions & 0 deletions src/components/CalendarButton.astro
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
button.innerHTML = text
}

const theme = document.documentElement.classList.contains("dark") ? "dark" : "light"
config.lightMode = theme

window.atcb_action(config, button)
})
</script>

0 comments on commit 901e0d0

Please sign in to comment.