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:
@@ -26,7 +26,7 @@
|
||||
|
||||
<div
|
||||
x-data="{ open: false }"
|
||||
@click.away="open = false"
|
||||
@click.outside="open = false"
|
||||
@close.stop="open = false"
|
||||
{{ $attributes->merge(['class' => 'relative inline-block']) }}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user