From 506fb3ee29cbeda41bdc03988deaad3af5f04fa3 Mon Sep 17 00:00:00 2001 From: ATAKAN TEPE Date: Fri, 18 Aug 2023 15:15:49 +0300 Subject: [PATCH] Fixed dialog w/footer border radius issue on TW Theme --- components/lib/passthrough/tailwind/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/components/lib/passthrough/tailwind/index.js b/components/lib/passthrough/tailwind/index.js index 7b464c04d..3fbc2d226 100644 --- a/components/lib/passthrough/tailwind/index.js +++ b/components/lib/passthrough/tailwind/index.js @@ -427,14 +427,17 @@ export default { closeButtonIcon: { class: 'w-4 h-4 inline-block' }, - content: ({ state }) => ({ + content: ({ state, instance }) => ({ class: [ 'overflow-y-auto', 'bg-white text-gray-700 px-6 pb-8 pt-0', - 'rounded-bl-lg rounded-br-lg', - 'dark:bg-gray-900 dark:text-white/80 ', + , + 'dark:bg-gray-900 dark:text-white/80', { grow: state.maximized + }, + { + 'rounded-bl-lg rounded-br-lg': !instance.$slots.footer } ] }),