Skip to content

Commit

Permalink
Add icon class
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 committed May 29, 2024
1 parent 9054746 commit b607f83
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/views/actions/link.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
'label' => 'text-inherit',
'active' => 'text-primary-400 hover:text-primary-300',
'inactive' => 'text-secondary-400 hover:text-primary-400',
'icon' => 'size-6 text-secondary-400',
])
->mergeAttributes($action->getComponentAttributes())
->classMerge([
Expand All @@ -18,7 +19,10 @@
])
}}>
@if ($slot->isEmpty())
<x-wireuse::actions-icon :$action />
<x-wireuse::actions-icon
:$action
class:icon="{{ $attributes->classFor('icon') }}"
/>

<span class="{{ $attributes->classFor('label') }}">
{{ $label() }}
Expand Down

0 comments on commit b607f83

Please sign in to comment.