Merge pull request #15350 from marcusmoore/icon-component-updates

Fixed icon not rotated and simplified component
This commit is contained in:
snipe 2024-08-20 19:34:38 +01:00 committed by GitHub
commit 22d3734075
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,9 +2,5 @@
@props([
'type' => '',
'class' => false,
'style' => false,
'id' => false,
'title' => false,
])
<i {{ $attributes->merge(['class' => Icon::icon($type).' '.$class]) }} {{ isset($style) ? $attributes->merge(['style' => $style]): '' }} {{ isset($title) ? $attributes->merge(['title' => $title]): '' }} aria-hidden="true"></i>
<i {{ $attributes->merge(['class' => Icon::icon($type)]) }} aria-hidden="true"></i>