chore(overlays): darken opacity overlay for modal and slideover

This commit is contained in:
Benjamin Canac
2022-04-08 10:56:06 +02:00
parent 49afd2d404
commit 368f93c294
2 changed files with 3 additions and 2 deletions

View File

@@ -13,7 +13,7 @@
leave-from="opacity-100"
leave-to="opacity-0"
>
<DialogOverlay class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" />
<DialogOverlay class="fixed inset-0 bg-gray-500/75 dark:bg-gray-600/75 transition-opacity" />
</TransitionChild>
<!-- This element is to trick the browser into centering the modal contents. -->

View File

@@ -10,8 +10,9 @@
leave-from="opacity-100"
leave-to="opacity-0"
>
<DialogOverlay class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" />
<DialogOverlay class="fixed inset-0 bg-gray-500/75 dark:bg-gray-600/75 transition-opacity" />
</TransitionChild>
<TransitionChild
as="template"
enter="transition ease-in-out duration-300 transform"