From 216a15307a5f58e583d5742dddad6431800e9e4e Mon Sep 17 00:00:00 2001 From: Andreas Reinhold / reini Date: Mon, 14 Sep 2026 05:38:02 +0200 Subject: [PATCH] Square the full-screen dialog with the M3 corner token, and guard every package view The one rounded-none left behind by the scale clearing becomes rounded-corner-none, so the design guard's test of the package's own views needs no filter any more: the breakpoint migration landed too. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01Qwx5USif3wFFmxtHg5U1g9 --- package-lock.json | 2 +- resources/views/components/modal.blade.php | 2 +- tests/Feature/DesignGuardTest.php | 11 +---------- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index f71e8f10..5809fbba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "agent-afa50210f14592c5f", + "name": "livewire-material", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/resources/views/components/modal.blade.php b/resources/views/components/modal.blade.php index fd9d0d66..190a539e 100644 --- a/resources/views/components/modal.blade.php +++ b/resources/views/components/modal.blade.php @@ -65,7 +65,7 @@ >
$fullscreen, + 'max-medium:h-full max-medium:rounded-corner-none max-medium:p-0 max-medium:pt-[var(--material-safe-top,env(safe-area-inset-top))]' => $fullscreen, $boxClass, ])> @if ($fullscreen) diff --git a/tests/Feature/DesignGuardTest.php b/tests/Feature/DesignGuardTest.php index 52ef2689..3a4f3fbf 100644 --- a/tests/Feature/DesignGuardTest.php +++ b/tests/Feature/DesignGuardTest.php @@ -196,14 +196,5 @@ it('bans any further pattern', function () { it('passes the package\'s own views', function () { $violations = DesignGuard::scan([__DIR__.'/../../resources/views', __DIR__.'/../../resources/js', __DIR__.'/../../src'])->violations(); - // Two checks the package's own views do not pass yet, each owned by another step of - // docs/plans/material-3-alignment.md. Drop the filter as each lands: - // - step 15 migrates every `sm:`/`md:`/`lg:`/`xl:` in these views to M3's window size - // classes; until then the breakpoint check reports ~150 of them. - // - step 2 replaced the package's own `rounded-full` with `rounded-corner-full` and left - // one `rounded-none` in `modal.blade.php` behind. - $outstanding = array_values(array_filter($violations, fn (string $violation): bool => ! str_contains($violation, 'Tailwind breakpoint `') - && ! str_contains($violation, 'value outside the M3 scale `rounded-none`'))); - - expect($outstanding)->toBe([]); + expect($violations)->toBe([]); });