From e1cdc52b48a9e79a3591e1f9c97091ef6b2406f5 Mon Sep 17 00:00:00 2001 From: Andreas Reinhold / reini Date: Tue, 15 Sep 2026 04:49:30 +0200 Subject: [PATCH] Rewrite the showcase's Progress section without Tailwind MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plan step 38: the "bind" example's wrapper div becomes / , and the one enlarged circular indicator moves to a data-md-showcase-progress-lg hook. Along the way, $examples changes from a ['Title' => [code, stack]] tuple back to the plain 'Title' => <<<'BLADE' every other section uses, with the row exceptions listed separately: the tuple's leading `[` broke Sections::index()'s regex, so every one of this section's examples was silently missing from the showcase search index. Fixing the shape recovers them — the Feature ShowcaseTest's search-index assertion count moves from 259 to 266. Every aria-label the Chromium ProgressTest reads off #progress (Linear, Circular, Circular wavy, Bound, the indeterminate variants) is unchanged. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01Qwx5USif3wFFmxtHg5U1g9 --- resources/css/showcase.css | 7 +++ .../showcase/sections/progress.blade.php | 49 ++++++++++--------- 2 files changed, 33 insertions(+), 23 deletions(-) diff --git a/resources/css/showcase.css b/resources/css/showcase.css index 36520739..3fcc4196 100644 --- a/resources/css/showcase.css +++ b/resources/css/showcase.css @@ -383,4 +383,11 @@ [data-md-showcase-illustration='on-accent'] { fill: var(--md-sys-color-on-tertiary); } + + /* Progress: one circular indicator drawn larger than its 48px default, to show the ring + scales with its box. */ + [data-md-showcase-progress-lg] { + width: 96px; + height: 96px; + } } diff --git a/resources/views/showcase/sections/progress.blade.php b/resources/views/showcase/sections/progress.blade.php index f3cc3eb3..343a90ad 100644 --- a/resources/views/showcase/sections/progress.blade.php +++ b/resources/views/showcase/sections/progress.blade.php @@ -1,57 +1,60 @@ @php $examples = [ - 'Linear: determinate and indeterminate' => [<<<'BLADE' + 'Linear: determinate and indeterminate' => <<<'BLADE' - BLADE, true], - 'Linear wavy' => [<<<'BLADE' + BLADE, + 'Linear wavy' => <<<'BLADE' - BLADE, true], - 'Thick' => [<<<'BLADE' + BLADE, + 'Thick' => <<<'BLADE' - BLADE, true], - 'Circular' => [<<<'BLADE' + BLADE, + 'Circular' => <<<'BLADE' - - BLADE, false], - 'Colours' => [<<<'BLADE' + + BLADE, + 'Colours' => <<<'BLADE' - BLADE, true], - 'Following a value in the browser (bind)' => [<<<'BLADE' -
+ BLADE, + 'Following a value in the browser (bind)' => <<<'BLADE' + -
+ -
-
- BLADE, false], + + + BLADE, ]; + + // Every example stacks except Circular, which lays several indicators side by side in a row. + $rows = ['Circular']; @endphp -
-

Progress

+ +

Progress

-

+

<x-progress>: M3 Expressive's linear and circular progress indicators, flat or wavy, determinate or indeterminate.

- @foreach ($examples as $title => [$code, $stack]) - + @foreach ($examples as $title => $code) + @endforeach -
+