diff --git a/resources/boost/skills/livewire-material-development/SKILL.md b/resources/boost/skills/livewire-material-development/SKILL.md index aed083e3..b6c4ac51 100644 --- a/resources/boost/skills/livewire-material-development/SKILL.md +++ b/resources/boost/skills/livewire-material-development/SKILL.md @@ -629,7 +629,7 @@ M3 text fields. `variant`: `outlined` or `filled`; without it, `config('livewire - `counter` (on `` and ``) puts M3's character counter at the end of the supporting-text row, beside the hint or the error: `n/max`, counted on every keystroke against the field's own `maxlength`, and in the error colour once the value is past it. It needs `maxlength` — without one there is nothing to count against and nothing is drawn. It is said as "Character count, 5/20" from a polite region a second after typing stops. - ``: native `, diff --git a/resources/views/components/timepicker.blade.php b/resources/views/components/timepicker.blade.php index 81de4e7a..0098650e 100644 --- a/resources/views/components/timepicker.blade.php +++ b/resources/views/components/timepicker.blade.php @@ -135,6 +135,7 @@ $inputAttributes = $attributes->whereDoesntStartWith(['wire:model', 'x-model'])->except(['class', 'id', 'wire:key', 'placeholder']); $disabled = (bool) $attributes->get('disabled'); $described = $messages !== [] || filled($hint); + $fieldIconSize = ['sm' => 20, 'xs' => 16][$size] ?? 24; @endphp
- + @endif @@ -184,12 +186,13 @@ type="button" tabindex="-1" x-on:click="show()" - class="field-trailing field-button" + data-md-field-trailing + data-md-field-button aria-label="{{ __('Choose time') }}" data-timepicker-open @disabled($disabled) > - + diff --git a/resources/views/components/toggle.blade.php b/resources/views/components/toggle.blade.php index ec21adf6..5631fc5d 100644 --- a/resources/views/components/toggle.blade.php +++ b/resources/views/components/toggle.blade.php @@ -5,10 +5,10 @@ its name — a switch without `label` needs an `aria-label`. `right` puts it at the end of the row, where a setting's switch usually is. `icons` draws a check on the handle when on and a cross when off; `icons="selected"` only the check. Every other attribute reaches the `` - (resources/css/components/selection.css). + (resources/css/components/toggle.css). - Without a label the row is only the 52×32 track, so the track carries `touch-target` and catches - presses over M3's 48px minimum. --}} + Without a label the row is only the 52×32 track, so the track carries `md-touch-target` and + catches presses over M3's 48px minimum. `class` and `style` land on the root, `data-md-toggle`. --}} @props([ 'label' => null, @@ -23,35 +23,30 @@ $icons = $icons === 'selected' ? 'selected' : ($icons ? 'both' : null); @endphp -
only(['class', 'wire:key'])->class(['min-w-0']) }}> -