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:
@@ -18,7 +18,7 @@
|
||||
$variantClasses = match($variant) {
|
||||
'danger' => 'text-error hover:bg-error/10 focus:bg-error/10',
|
||||
'success' => 'text-success hover:bg-success/10 focus:bg-success/10',
|
||||
default => 'text-primary hover:bg-primary/5 hover:text-primary-hover focus:bg-primary/5 focus:text-primary-hover dark:text-gray-200 dark:hover:bg-white/5',
|
||||
default => 'text-primary hover:bg-primary/5 hover:text-primary-hover focus:bg-primary/5 focus:text-primary-hover dark:text-base/80 dark:hover:bg-white/5',
|
||||
};
|
||||
|
||||
$disabledClasses = $disabled ? 'pointer-events-none opacity-50' : '';
|
||||
|
||||
Reference in New Issue
Block a user