Skip to content

Commit

Permalink
refactor: modal overlay class property
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarnsley committed Jan 9, 2024
1 parent df06a42 commit de77ba3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/views/modal.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
'contentClass' => 'modal-content',
'disableOverlayClose' => false,
'disableScrollLockAtWidth' => null,
'overlayClass' => null,
])

@php
Expand All @@ -33,7 +34,10 @@
][$breakpoint] ?? 'md:m-auto';
@endphp

<div class="fixed inset-0 z-50 opacity-75 dark:opacity-50 bg-theme-secondary-900 dark:bg-theme-secondary-800"></div>
<div @class([
'fixed inset-0 z-50 opacity-75 dark:opacity-50 bg-theme-secondary-900 dark:bg-theme-secondary-800',
$overlayClass,
])></div>

<div
wire:ignore.self
Expand Down

0 comments on commit de77ba3

Please sign in to comment.