feat : update modal style

This commit is contained in:
2026-05-26 09:32:05 +02:00
parent 28267909ff
commit 56f26a9d07
2 changed files with 8 additions and 5 deletions
+6 -3
View File
@@ -1,5 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref } from 'vue' import { ref } from 'vue'
import MalioButton from "../../../../app/components/malio/button/Button.vue";
const modalBase = ref(false) const modalBase = ref(false)
const modalForm = ref(false) const modalForm = ref(false)
@@ -12,11 +13,13 @@ const modalNoDismiss = ref(false)
<div class="rounded-lg border p-6"> <div class="rounded-lg border p-6">
<h2 class="mb-6 text-xl font-bold">Modal simple</h2> <h2 class="mb-6 text-xl font-bold">Modal simple</h2>
<MalioButton label="Ouvrir" @click="modalBase = true" /> <MalioButton label="Ouvrir" @click="modalBase = true" />
<MalioModal v-model="modalBase"> <MalioModal v-model="modalBase" headerClass="py-7 px-[25px]" footerClass="flex justify-center pt-8">
<template #header> <template #header>
<h2 class="text-[24px] font-bold text-black">Détails</h2> <h2 class="text-[24px] font-bold text-black">Marquer comme vu ?</h2>
</template>
<template #footer>
<MalioButton label="Valider"/>
</template> </template>
<p class="text-m-text">Contenu de la modal. Échap, clic backdrop et croix la ferment.</p>
</MalioModal> </MalioModal>
</div> </div>
+2 -2
View File
@@ -20,7 +20,7 @@
<div <div
ref="panelRef" ref="panelRef"
:class="twMerge( :class="twMerge(
'relative z-50 flex max-h-[85vh] w-full max-w-md flex-col rounded-malio bg-white', 'relative z-50 flex max-h-[85vh] w-full max-w-md flex-col rounded-malio bg-white shadow-[0_4px_4px_0_rgba(0,0,0,0.25)]',
modalClass, modalClass,
)" )"
role="dialog" role="dialog"
@@ -66,7 +66,7 @@
</div> </div>
<div <div
v-if="$slots.footer" v-if="$slots.footer"
:class="twMerge('flex shrink-0 items-center gap-3 border-t border-m-border px-5 py-4', footerClass)" :class="twMerge('flex shrink-0 items-center gap-3 px-5 py-4', footerClass)"
data-test="footer" data-test="footer"
> >
<slot name="footer" /> <slot name="footer" />