Skip to content

Commit

Permalink
update Dialog example to use DialogPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Jul 25, 2022
1 parent 1d12aec commit f95b80c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/playground-vue/src/components/dialog/dialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
leaveTo="opacity-0"
entered="opacity-75"
>
<DialogOverlay className="fixed inset-0 bg-gray-500 transition-opacity" />
<div className="fixed inset-0 bg-gray-500 transition-opacity" />
</TransitionChild>

<TransitionChild
Expand All @@ -41,7 +41,7 @@
<span class="hidden sm:inline-block sm:h-screen sm:align-middle" aria-hidden="true">
&#8203;
</span>
<div
<DialogPanel
class="inline-block transform overflow-hidden rounded-lg bg-white text-left align-bottom shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:align-middle"
>
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
Expand Down Expand Up @@ -172,7 +172,7 @@
Cancel
</button>
</div>
</div>
</DialogPanel>
</TransitionChild>
</div>
</div>
Expand All @@ -186,6 +186,7 @@ import {
Dialog,
DialogTitle,
DialogOverlay,
DialogPanel,
Menu,
MenuButton,
MenuItems,
Expand Down Expand Up @@ -268,6 +269,7 @@ export default {
Dialog,
DialogTitle,
DialogOverlay,
DialogPanel,
Menu,
MenuButton,
MenuItems,
Expand Down

0 comments on commit f95b80c

Please sign in to comment.