Private
Public Access
1
0

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:
2026-02-23 20:02:41 -05:00
parent f394483daa
commit af62a16354
45 changed files with 393 additions and 4700 deletions

View File

@@ -122,7 +122,7 @@
<template x-if="open">
<div class="fixed inset-0 z-[9999] flex items-center justify-center bg-black/50 backdrop-blur-sm p-4 overflow-y-auto">
<div class="bg-white rounded-2xl p-6 w-full max-w-4xl shadow-2xl border border-neutral/30 my-8">
<div class="bg-background-secondary rounded-2xl p-6 w-full max-w-4xl shadow-2xl border border-neutral/30 my-8">
<div class="flex flex-col gap-2 mb-6">
<h2 class="text-2xl font-semibold text-base">Reinstall Server</h2>
@if($isProtected)
@@ -153,7 +153,7 @@
x-bind:class="{ 'rotate-180': activeSection === '{{ $categoryKey }}' }"></x-ri-arrow-down-s-line>
</button>
<div class="px-4 pb-4 pt-2 bg-white"
<div class="px-4 pb-4 pt-2 bg-background-secondary"
x-show="activeSection === '{{ $categoryKey }}'"
x-collapse.duration.200ms>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
@@ -189,7 +189,7 @@
<input type="radio" class="sr-only" wire:model.live="os" value="{{ $template->id }}">
<div class="shrink-0">
<img src="{{ $iconPath ?? $defaultIcon }}" alt="{{ $template->name }} logo"
class="size-12 rounded-lg border border-neutral/30 bg-white object-contain p-1">
class="size-12 rounded-lg border border-neutral/30 bg-background-secondary object-contain p-1">
</div>
<div class="flex flex-col">
<span class="font-semibold text-base">{{ $template->name }}</span>