mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-10-03 04:16:44 -05:00
Wire dialog dismissal through the shared modal
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<TransitionRoot as="template" :show="show">
|
||||
<Dialog as="div" class="relative z-20">
|
||||
<Dialog as="div" class="relative z-20" @close="$emit('close')">
|
||||
<TransitionChild
|
||||
as="template"
|
||||
enter="ease-out duration-300"
|
||||
@@ -45,4 +45,6 @@ defineProps({
|
||||
noScroll: Boolean,
|
||||
innerClass: String,
|
||||
});
|
||||
|
||||
defineEmits(['close']);
|
||||
</script>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<ModalDialog inner-class="md:-rotate-1" no-scroll>
|
||||
<ModalDialog inner-class="md:-rotate-1" no-scroll @close="$emit('close')">
|
||||
<div class="h-full w-full max-w-2xl isolate rounded-2xl overflow-hidden" :class="type.bg">
|
||||
<div class="relative h-full overflow-hidden">
|
||||
<div class="absolute inset-x-0 bg-zinc-800/40 backdrop-blur-md z-30 pt-10 pb-4">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<ModalDialog inner-class="-rotate-1 relative">
|
||||
<ModalDialog inner-class="-rotate-1 relative" @close="$emit('close')">
|
||||
<div class="bg-zinc-100 p-2">
|
||||
<button class="text-zinc-300 bg-zinc-600/50 rounded-full p-1 absolute top-3 right-3" @click="$emit('close')">
|
||||
<span class="sr-only">Close</span>
|
||||
|
||||
Reference in New Issue
Block a user