Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
danpalmieri committed Apr 26, 2024
1 parent c4ec769 commit dc7aa20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/views/components/tabs.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'inline-flex items-center justify-center',
'text-lg' => $size === 'lg',
'text-base' => $size === 'md',
'text-sm' => $size === 'sm',
'text-sm space-x-4' => $size === 'sm',
]);
@endphp
<div class="border-b pb-1.5 w-full">
Expand Down
6 changes: 3 additions & 3 deletions resources/views/components/tabs/item.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@php
$buttonClasses = generateClasses([
'flex font-medium items-center h-6 items-center border-b relative top-[7px] space-x-2 pb-[20px] transition focus:outline-none',
'flex font-medium items-center h-7 items-center border-b relative top-[7px] space-x-2 pb-[20px] transition focus:outline-none',
'text-gray-600 border-transparent hover:text-gray-900' => ! $active,
'text-gray-900 border-black' => $active,
]);
Expand All @@ -21,13 +21,13 @@
@if ($icon)
<x-dynamic-component :component="$icon" class="w-4 h-4 opacity-80" />
@endif
<span>{{ $slot }}</span>
<span @if($active) class="border block rounded-lg border-gray-200/70 px-2 py-1" @endif>{{ $slot }}</span>
</button>
@elseif ($tag === 'a')
<a {{ $attributes->class([$buttonClasses]) }}>
@if ($icon)
<x-dynamic-component :component="$icon" class="w-4 h-4 opacity-80" />
@endif
<span>{{ $slot }}</span>
<span @if($active) class="border block rounded-lg border-gray-200/70 px-2 py-1" @endif>{{ $slot }}</span>
</a>
@endif

0 comments on commit dc7aa20

Please sign in to comment.