Skip to content

Commit 8b467ab

Browse files
committed
Refactor to class directive
1 parent 9e62334 commit 8b467ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/framework/resources/views/components/docs/table-of-contents.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@props(['items', 'isChild' => false])
22

33
@if(! empty($items))
4-
<ul class="{{ $isChild ? 'pl-2' : 'table-of-contents pb-3' }}">
4+
<ul @class(['pl-2' ? $isChild : 'table-of-contents pb-3'])>
55
@foreach($items as $item)
66
<li class="my-0.5">
77
<a href="#{{ $item['identifier'] }}" class="-ml-8 pl-8 opacity-80 hover:opacity-100 hover:bg-gray-200/20 transition-all duration-300">

0 commit comments

Comments
 (0)