Skip to content

Commit c6f9891

Browse files
committed
Updated sizing to match new button sizes
1 parent 97030da commit c6f9891

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

‎resources/views/components/input.blade.php‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,21 @@
5151

5252
{{ $attributes->except(['wire:ignore'])->class([
5353
'form-input block w-full',
54-
'text-base sm:text-sm leading-[1.375rem] py-2 h-10',
54+
55+
'text-base sm:text-sm leading-5 h-9',
56+
57+
'py-2',
58+
'pl-4' => ($iconPrefix ?? false) !== false,
59+
'pr-4' => ($iconSuffix ?? false) !== false,
60+
5561
'placeholder:text-[var(--muted-foreground)]',
5662
'text-inherit' => ! Str::contains($attributes->get('class'), 'text-'),
5763
'bg-[var(--input)] border-[var(--border)]',
5864
'ring-0 focus:border-[var(--primary)] focus:ring-2 focus:ring-[color-mix(in_oklab,var(--primary)_25%,transparent)]',
5965
'disabled:opacity-50 read-only:opacity-50',
66+
6067
'rounded-l-md' => ($prefix ?? false) === false && ! Str::contains($attributes->get('class'), 'rounded-'),
6168
'rounded-r-md' => ($suffix ?? false) === false && ! Str::contains($attributes->get('class'), 'rounded-'),
62-
'pl-8' => ($iconPrefix ?? false) !== false,
63-
'pr-8' => ($iconSuffix ?? false) !== false,
6469
]) }} />
6570
@if($iconSuffix ?? false)
6671
<span {{ $iconSuffix->attributes->class([

‎resources/views/components/select.blade.php‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@
2525

2626
{{ $attributes->class([
2727
'form-select block w-full flex-grow relative',
28-
'text-base sm:text-sm leading-[1.375rem] py-2 h-10',
28+
29+
'text-base sm:text-sm leading-5 h-9',
30+
31+
'py-2',
32+
'pl-4',
33+
'pr-8',
34+
2935
'placeholder:text-[var(--muted-foreground)]',
3036
'text-inherit' => ! Str::contains($attributes->get('class'), 'text-'),
3137
'bg-[var(--input)] border-[var(--border)]',

0 commit comments

Comments
 (0)