Refactor dropdown and navigation components: update styles for improved consistency and accessibility; enhance link styling for better user experience

This commit is contained in:
2026-03-16 20:00:05 -04:00
parent 56462aac19
commit 99d14d9aa9
3 changed files with 37 additions and 60 deletions

View File

@@ -1,6 +1,6 @@
@props(['href', 'spa' => true])
<a href="{{ $href }}" {{ $attributes->merge(['class' => 'flex flex-row items-center p-3 gap-2 text-sm font-medium
text-wrap transition-colors duration-200 ' . ($href === request()->url() ? 'text-primary' : 'text-base/80 hover:text-base')]) }} @if($spa)
<a href="{{ $href }}" {{ $attributes->merge(['class' => 'flex flex-row items-center p-3 gap-2 text-sm font-semibold
text-wrap transition-colors duration-200 ' . ($href === request()->url() ? 'text-primary' : 'text-base hover:text-primary')]) }} @if($spa)
wire:navigate @endif>
{{ $slot }}
</a>