File tree Expand file tree Collapse file tree
packages/framework/resources/views/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88@php
99 $tag = ' h' . $level ;
1010 $id = $id ?? \Illuminate \Support \Str:: slug ($slot );
11- @endphp
1211
13- < {{ $tag } } {{ $attributes -> merge ( array_merge ($extraAttributes , [
12+ $extraAttributes = array_merge ($extraAttributes , [
1413 ' id' => $addPermalink ? $id : ($extraAttributes [' id' ] ?? null ),
1514 ' class' => trim (($extraAttributes [' class' ] ?? ' ' ) . ($addPermalink ? ' group w-fit scroll-mt-2' : ' ' )),
16- ])) } } >
15+ ]);
16+ @endphp
17+
18+ <{{ $tag } } {{ $attributes -> merge ($extraAttributes ) } } >
1719 {!! $slot ! !}
1820 @if ($addPermalink === true )
1921 <a href =" #{{ $id } }" class =" heading-permalink opacity-0 ml-1 transition-opacity duration-300 ease-linear px-1 group-hover:opacity-100 focus:opacity-100 group-hover:grayscale-0 focus:grayscale-0" title =" Permalink" >
You can’t perform that action at this time.
0 commit comments