File tree Expand file tree Collapse file tree 5 files changed +11
-11
lines changed
resources/views/components Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 4
4
<x-menus-divider :item =" $item" class =" py-2 px-16 border-0 bg-gray-500 text-gray-500 h-px" />
5
5
@else
6
6
@if ($item -> isActive () )
7
- <x-menus-item :item =" $item" class =" py-2 px-16 block text-sm text-gray-600 hover:bg-blue-500 hover:text-white bg- gray-200 text-gray-700 border-r -4 border-gray -700" />
7
+ <x-menus-item :item =" $item" class =" w-full inline-flex items-center py-3 px-6 text-sm font-semibold text-gray-800 transition-colors duration-150 hover:text-gray-800 dark: hover:text-gray-200 dark: text-gray-100 border-l -4 border-purple -700" />
8
8
@else
9
- <x-menus-item :item =" $item" class =" py-2 px-16 block text-sm text-gray-600 hover:bg-blue-500 hover:text-white " />
9
+ <x-menus-item :item =" $item" class =" w-full inline-flex items-center py-3 px-6 text-sm font-semibold text-gray-800 transition-colors duration-150 hover:text-gray-800 dark: hover:text-gray-200 dark:text-gray-100 " />
10
10
@endif
11
11
@endif
12
12
@endforeach
Original file line number Diff line number Diff line change 1
- <div x-data =" { open: false }" >
1
+ <div x-data =" { open: {{ $item -> isActive () ? ' true ' : ' false' } } }" >
2
2
@if ($item -> haschildren () )
3
3
<button @click =" open = !open" {{ $attributes -> merge ($item -> attributes ) } } >
4
4
<span class =" flex items-center" >
5
5
<x-menus-icon class =" h-5 w-5" :item =" $item" />
6
- <span class =" mx-4 font-medium " >{{ $item -> title } } </span >
6
+ <span class =" mx-4" >{{ $item -> title } } </span >
7
7
</span >
8
8
9
9
<span >
Original file line number Diff line number Diff line change 2
2
@isset ($slot )
3
3
{{ $slot } }
4
4
@else
5
- < i class = " {{ $icon } }" ></ i >
5
+ {{ $icon } }
6
6
@endif
7
7
</div >
Original file line number Diff line number Diff line change 1
1
@if ($item -> haschildren () )
2
- <div x-data =" { open: false }" {{ $attributes -> merge ($item -> attributes ) } } >
3
- <button @click =" open = !open" >
2
+ <div x-data =" { open: {{ $item -> isActive () ? ' true ' : ' false' } } }" {{ $attributes -> merge ($item -> attributes ) } } >
3
+ <button @click =" open = !open" class = " flex justify-between items-center " >
4
4
<span class =" flex items-center" >
5
5
<x-menus-icon class =" h-5 w-5" :item =" $item" />
6
- <span class =" mx-4 font-medium " >{{ $item -> title } } </span >
6
+ <span class =" mx-4" >{{ $item -> title } } </span >
7
7
</span >
8
8
9
9
<span >
19
19
@else
20
20
<a {{ $attributes -> merge ($item -> attributes )-> merge ([' href' => $item -> getUrl ()]) } } >
21
21
<x-menus-icon class =" h-5 w-5" :item =" $item" />
22
- <span class =" mx-4 font-medium " >{{ $item -> title } } </span >
22
+ <span class =" mx-4" >{{ $item -> title } } </span >
23
23
</a >
24
24
@endif
Original file line number Diff line number Diff line change 4
4
<x-menus-divider :item =" $item" class =" border-0 bg-gray-500 text-gray-500 h-px" />
5
5
@else
6
6
@if ($item -> isActive () )
7
- <x-menus-item :item =" $item" class =" w-full flex justify-between items-center py-3 px-6 text-gray-600 cursor-pointer hover:bg -gray-100 hover:text-gray-700 focus:outline-none bg- gray-200 text-gray-700 border-r -4 border-gray -700" />
7
+ <x-menus-item :item =" $item" class =" w-full inline- flex items-center py-3 px-6 text-sm font-semibold text -gray-800 transition-colors duration-150 hover:text-gray-800 dark:hover:text- gray-200 dark: text-gray-100 border-l -4 border-purple -700" />
8
8
@else
9
- <x-menus-item :item =" $item" class =" w-full flex justify-between items-center py-3 px-6 text-gray-600 cursor-pointer hover:bg -gray-100 hover:text-gray-700 focus:outline-none " />
9
+ <x-menus-item :item =" $item" class =" w-full inline- flex items-center py-3 px-6 text-sm font-semibold text- gray-800 transition-colors duration-150 hover:text -gray-800 dark: hover:text-gray-200 dark:text-gray-100 " />
10
10
@endif
11
11
@endif
12
12
@endforeach
You can’t perform that action at this time.
0 commit comments