Skip to content

Commit

Permalink
Change merge order to preserve output format
Browse files Browse the repository at this point in the history
May want to revert this later as it makes sense for user added data to be last, but this preserves the current attribute order for now
  • Loading branch information
caendesilva committed Jul 10, 2024
1 parent 283016f commit 93cef20
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<a href="{{ $item }}" {{ $attributes->except('item')->class([
'navigation-link block my-2 md:my-0 md:inline-block py-1 text-gray-700 hover:text-gray-900 dark:text-gray-100',
'navigation-link-active border-l-4 border-indigo-500 md:border-none font-medium -ml-6 pl-5 md:ml-0 md:pl-0 bg-gray-100 dark:bg-gray-800 md:bg-transparent dark:md:bg-transparent' => $item->isActive()
])->merge([
])->merge($item->getExtraAttributes())->merge([
'aria-current' => $item->isActive() ? 'page' : false,
])->merge($item->getExtraAttributes()) }}>{{ $item->getLabel() }}</a>
]) }}>{{ $item->getLabel() }}</a>

0 comments on commit 93cef20

Please sign in to comment.