Skip to content

Commit

Permalink
Revert "Inline local variable override"
Browse files Browse the repository at this point in the history
This reverts commit d4336e4.
  • Loading branch information
caendesilva committed Dec 5, 2024
1 parent d4336e4 commit 4e378fd
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
@php
$tag = 'h' . $level;
$id = $id ?? \Illuminate\Support\Str::slug($slot);
@endphp
<{{ $tag }} {{ $attributes->merge(array_merge($extraAttributes, [
$extraAttributes = array_merge($extraAttributes, [
'id' => $addPermalink ? $id : ($extraAttributes['id'] ?? null),
'class' => trim(($extraAttributes['class'] ?? '') . ($addPermalink ? ' group w-fit scroll-mt-2' : '')),
])) }}>
]);
@endphp

<{{ $tag }} {{ $attributes->merge($extraAttributes) }}>
{!! $slot !!}
@if($addPermalink === true)
<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">
Expand Down

0 comments on commit 4e378fd

Please sign in to comment.