diff --git a/resources/views/components/danger-zone.blade.php b/resources/views/components/danger-zone.blade.php index cd2f75fbce..37dc97c807 100644 --- a/resources/views/components/danger-zone.blade.php +++ b/resources/views/components/danger-zone.blade.php @@ -1,9 +1,17 @@ @props(['title']) -
class('flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between') }}> +
class('flex flex-col gap-4 rounded-lg border border-red-200 bg-red-50 p-5 sm:flex-row sm:items-start sm:justify-between dark:border-red-500/25 dark:bg-red-500/[0.08]') }}>
-

{{ $title }}

-
+
+

{{ $title }}

+ + + Permanent + +
+
{{ $slot }}
diff --git a/tests/Feature/DangerZoneLayoutTest.php b/tests/Feature/DangerZoneLayoutTest.php index 6f212301f8..5395958c73 100644 --- a/tests/Feature/DangerZoneLayoutTest.php +++ b/tests/Feature/DangerZoneLayoutTest.php @@ -5,10 +5,11 @@ it('uses one shared visual treatment for all danger zone actions', function () { expect($component) ->toContain("@props(['title'])") - ->toContain('sm:flex-row sm:items-center sm:justify-between') - ->toContain('text-red-700 dark:text-red-300') - ->toContain('@isset($action)') - ->not->toContain('bg-red-50'); + ->toContain('sm:flex-row sm:items-start sm:justify-between') + ->toContain('rounded-lg border border-red-200 bg-red-50') + ->toContain('dark:border-red-500/25 dark:bg-red-500/[0.08]') + ->toContain('Permanent') + ->toContain('@isset($action)'); foreach ([ 'livewire/destination/show.blade.php',