From dfb599747403e4f87e8e4a81708ba84fea8fa868 Mon Sep 17 00:00:00 2001 From: Andreas Reinhold / reini Date: Tue, 15 Sep 2026 04:50:29 +0200 Subject: [PATCH] Rewrite the showcase's Chips section without Tailwind Plan step 38: the Alpine-scope wrapper divs become / carrying x-data directly, giving Filter and Input chips M3's full-width stretch in place of w-full/space-y-6. The narrow demo that forces its chip set to scroll moves to a data-md-showcase-chip-scroll hook (384px, Tailwind's old max-w-sm). Every id, value and derived aria-label the Chromium ChipsTest selectors read (#chips, the filter checkboxes' values, "Remove ") is unchanged. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01Qwx5USif3wFFmxtHg5U1g9 --- resources/css/showcase.css | 7 ++++++ .../views/showcase/sections/chips.blade.php | 22 +++++++++---------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/resources/css/showcase.css b/resources/css/showcase.css index 3fcc4196..54206ed5 100644 --- a/resources/css/showcase.css +++ b/resources/css/showcase.css @@ -390,4 +390,11 @@ width: 96px; height: 96px; } + + /* Chips: a row narrow enough that its set has to scroll, to show the fade and the arrow + buttons M3 asks an overflowing row for. */ + [data-md-showcase-chip-scroll] { + width: 100%; + max-width: 384px; + } } diff --git a/resources/views/showcase/sections/chips.blade.php b/resources/views/showcase/sections/chips.blade.php index 8e6da8da..e9a21946 100644 --- a/resources/views/showcase/sections/chips.blade.php +++ b/resources/views/showcase/sections/chips.blade.php @@ -1,17 +1,17 @@ @php $examples = [ 'Assist chips' => <<<'BLADE' -
+ -
+ BLADE, 'Filter chips' => <<<'BLADE' -
+ @@ -25,10 +25,10 @@ -
+ BLADE, 'Input chips' => <<<'BLADE' -
+