Skip to content

Commit

Permalink
feat: allow closing next lesson modal with esc
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesx00 committed Dec 18, 2024
1 parent b8f9e73 commit 467e961
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions _includes/layouts/lesson.njk
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ layout: layouts/base.njk
<div class="flex min-h-full items-center justify-center p-4 text-center sm:p-0">
<div
@click.outside="$refs.nextModalContainer.classList.add('hidden')"
@keyup.esc="$refs.nextModalContainer.classList.add('hidden')"
class="relative w-full overflow-hidden px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-sm
sm:p-6 md:w-80 border border-pe_light_blue bg-slate-100 opacity-100 translate-y-0 sm:scale-100"
id="headlessui-dialog-panel-:r9:"
Expand Down

0 comments on commit 467e961

Please sign in to comment.