Skip to content

Commit

Permalink
modal z-index
Browse files Browse the repository at this point in the history
  • Loading branch information
devajmeireles committed Oct 10, 2023
1 parent 8edfc56 commit 403d693
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/Enums/Examples/Ui/Modal.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ class Modal
</x-modal>
HTML;

public const Z_INDEX = <<<'HTML'
<x-modal title="TallStackUi" z-index="z-10">
TallStackUi
</x-modal>
HTML;

public const UNCLOSEABLE = <<<'HTML'
<x-modal title="TallStackUi" uncloseable>
TallStackUi
Expand Down
12 changes: 12 additions & 0 deletions resources/views/documentation/ui/modal.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,18 @@
</x-button>
</x-preview>
</x-section>
<x-section>
<x-preview title="Z Index"
language="blade"
:contents="$zIndex">
<x-modal id="z-modal" title="TallStackUi" z-index="z-10">
TallStackUi
</x-modal>
<x-button x-on:click="$modalOpen('z-modal')">
Open
</x-button>
</x-preview>
</x-section>
<x-section>
<x-preview title="Uncloseable"
description="An option to prevent the user from closing the modal when click outside."
Expand Down

0 comments on commit 403d693

Please sign in to comment.