Skip to content

Commit

Permalink
fix(readme): $child->classes instead of $item->classes (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
theMosaad authored Feb 13, 2021
1 parent 83014f5 commit 7edd993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class Navigation extends Composer
@if ($item->children)
<ul class="my-child-menu">
@foreach ($item->children as $child)
<li class="my-child-item {{ $item->classes ?? '' }} {{ $child->active ? 'active' : '' }}">
<li class="my-child-item {{ $child->classes ?? '' }} {{ $child->active ? 'active' : '' }}">
<a href="{{ $child->url }}">
{{ $child->label }}
</a>
Expand Down

0 comments on commit 7edd993

Please sign in to comment.