From bbdbec71976b0abd2c1ac8e6c999d6321098b37b Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Tue, 20 Aug 2024 11:00:39 -0700 Subject: [PATCH 1/2] Rely on $attributes behavior rendering passed attributes --- resources/views/blade/icon.blade.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/resources/views/blade/icon.blade.php b/resources/views/blade/icon.blade.php index 7aa6fdd408..ea35502c85 100644 --- a/resources/views/blade/icon.blade.php +++ b/resources/views/blade/icon.blade.php @@ -2,9 +2,6 @@ @props([ 'type' => '', - 'class' => false, - 'style' => false, 'id' => false, - 'title' => false, ]) -merge(['class' => Icon::icon($type).' '.$class]) }} {{ isset($style) ? $attributes->merge(['style' => $style]): '' }} {{ isset($title) ? $attributes->merge(['title' => $title]): '' }} aria-hidden="true"> \ No newline at end of file +merge(['class' => Icon::icon($type)]) }} aria-hidden="true"> \ No newline at end of file From eca6b03f44a0f4c51c650afa45bf9833021a8314 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Tue, 20 Aug 2024 11:08:53 -0700 Subject: [PATCH 2/2] Allow id to be rendered --- resources/views/blade/icon.blade.php | 1 - 1 file changed, 1 deletion(-) diff --git a/resources/views/blade/icon.blade.php b/resources/views/blade/icon.blade.php index ea35502c85..f2a430f4b7 100644 --- a/resources/views/blade/icon.blade.php +++ b/resources/views/blade/icon.blade.php @@ -2,6 +2,5 @@ @props([ 'type' => '', - 'id' => false, ]) merge(['class' => Icon::icon($type)]) }} aria-hidden="true"> \ No newline at end of file