diff --git a/src/components/TopicOverlay/TopicOverlay.astro b/src/components/TopicOverlay/TopicOverlay.astro index 97ac131f8..a00a6e37c 100644 --- a/src/components/TopicOverlay/TopicOverlay.astro +++ b/src/components/TopicOverlay/TopicOverlay.astro @@ -100,5 +100,9 @@ const { contentContributionLink } = Astro.props; } else { loginMarkDone?.classList.remove('hidden'); markDone?.classList.add('!hidden'); + loginMarkDone?.addEventListener('click', () => { + // Close the overlay + document.getElementById('topic-overlay')?.classList.add('hidden'); + }); }