From 8bef785f516972305fb83b9370859d87d4b5f885 Mon Sep 17 00:00:00 2001 From: Andreas Reinhold / reini Date: Tue, 15 Sep 2026 04:56:21 +0200 Subject: [PATCH] Rewrite the showcase's Sliders section without Tailwind MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plan step 38: single-column groups move onto , per-breakpoint ones onto , and the "Vertical" row's shared height (M3's second orientation needs one on the wrapper, which the label and hint share) moves to a showcase-slider-vertical class — forwards only class, style and wire:key to that wrapper, so a data attribute would have been dropped silently. Every #sliders id and data-bound span the Chromium SliderTest reads is unchanged. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01Qwx5USif3wFFmxtHg5U1g9 --- resources/css/showcase.css | 6 +++ .../views/showcase/sections/sliders.blade.php | 54 +++++++++---------- 2 files changed, 33 insertions(+), 27 deletions(-) diff --git a/resources/css/showcase.css b/resources/css/showcase.css index 2d206739..f2c44559 100644 --- a/resources/css/showcase.css +++ b/resources/css/showcase.css @@ -456,3 +456,9 @@ .showcase-w-narrow { max-width: 320px; } + +/* forwards only class, style and wire:key to its wrapper, which the label and hint + share with the track — so the vertical demo's shared height is a class too. */ +.showcase-slider-vertical { + height: 256px; +} diff --git a/resources/views/showcase/sections/sliders.blade.php b/resources/views/showcase/sections/sliders.blade.php index 03f1c2dc..950cd6d4 100644 --- a/resources/views/showcase/sections/sliders.blade.php +++ b/resources/views/showcase/sections/sliders.blade.php @@ -1,67 +1,67 @@ @php $examples = [ 'Standard, discrete and disabled' => <<<'BLADE' -
+ -
+ BLADE, 'Sizes, with an inset icon from md' => <<<'BLADE' -
+ -
+ BLADE, 'Range and centred' => <<<'BLADE' -
+ -
+ BLADE, 'Vertical' => <<<'BLADE' {{-- M3 Expressive's second orientation. A vertical slider needs a height: it is on the wrapper, which the label and hint share. --}} -
- - - - - -
+ + + + + + + BLADE, 'Colours and value labels' => <<<'BLADE' -
+ -
+ BLADE, 'Bound with x-model' => <<<'BLADE' -
-
+ + -

volume:

-
-
+

volume:

+ + -

price:

-
-
+

price:

+ + BLADE, ]; @endphp -
-

Sliders

+ +

Sliders

-

+

<x-slider>: M3 Expressive's slider on native range inputs — standard, range and centred, horizontal or vertical, five sizes, ticks, value labels and an inset icon.

@foreach ($examples as $title => $code) @endforeach -
+