Refactor modal close behavior and improve styling
- Changed modal close event from `@click.away` to `@click.self` for better control over closing modals. - Updated various modal button styles for consistency and improved accessibility. - Adjusted transition durations for modal animations to enhance user experience. - Added aria-labels to close buttons for better screen reader support.
This commit is contained in:
@@ -24,17 +24,17 @@
|
||||
])
|
||||
|
||||
<div @class([
|
||||
'relative w-full overflow-x-auto rounded-lg border border-neutral dark:border-gray-700 bg-background dark:bg-gray-800' => $responsive,
|
||||
'relative w-full overflow-x-auto rounded-lg border border-neutral bg-background' => $responsive,
|
||||
])>
|
||||
<table {{ $attributes->class([
|
||||
'w-full text-sm text-primary dark:text-gray-200 border-collapse',
|
||||
'w-full text-sm text-primary border-collapse',
|
||||
'[&_tbody_tr:nth-of-type(even)]:bg-black/[0.02] dark:[&_tbody_tr:nth-of-type(even)]:bg-white/[0.02]' => $striped,
|
||||
'[&_tbody_tr]:transition-colors [&_tbody_tr]:duration-200 [&_tbody_tr:hover]:bg-black/[0.04] dark:[&_tbody_tr:hover]:bg-white/[0.04]' => $hoverable,
|
||||
'border border-neutral dark:border-gray-700 [&_th]:border [&_th]:border-neutral dark:[&_th]:border-gray-700 [&_td]:border [&_td]:border-neutral dark:[&_td]:border-gray-700' => $bordered,
|
||||
'border border-neutral [&_th]:border [&_th]:border-neutral [&_td]:border [&_td]:border-neutral' => $bordered,
|
||||
'[&_th]:px-3 [&_th]:py-1.5 [&_td]:px-3 [&_td]:py-1.5' => $compact,
|
||||
]) }}>
|
||||
@if(isset($head))
|
||||
<thead class="bg-background-secondary dark:bg-gray-700/50 border-b-2 border-neutral dark:border-gray-600">
|
||||
<thead class="bg-background-secondary border-b-2 border-neutral">
|
||||
<tr>
|
||||
{{ $head }}
|
||||
</tr>
|
||||
@@ -44,7 +44,7 @@
|
||||
{{ $slot }}
|
||||
</tbody>
|
||||
@if(isset($foot))
|
||||
<tfoot class="bg-background-secondary dark:bg-gray-700/50 border-t-2 border-neutral dark:border-gray-600 font-medium">
|
||||
<tfoot class="bg-background-secondary border-t-2 border-neutral font-medium">
|
||||
{{ $foot }}
|
||||
</tfoot>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user