Skip to content

Commit 32f09d4

Browse files
committed
bs5 modal header only required when specified
1 parent dfde89c commit 32f09d4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

resources/views/bootstrap-5/modal.blade.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
>
55
<div class="modal-dialog {{ $modalSizeClass ?? 'modal-lg' }}">
66
<div class="modal-content">
7-
<div class="modal-header">
8-
@if($title)
7+
@if($title)
8+
<div class="modal-header">
99
<h5 class="modal-title">
1010
{{ $title }}
1111
</h5>
12-
@endif
1312

14-
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
15-
</div>
13+
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
14+
</div>
15+
@endif
1616

1717
<div class="modal-body">
1818
{{ $slot }}

0 commit comments

Comments
 (0)