Skip to content

Commit 9f668e1

Browse files
authored
Update AbstractFontAwesome.php (#32)
add `fa-{$style}` to "duotone" familiy class
1 parent 444dfaa commit 9f668e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FontAwesome/AbstractFontAwesome.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected function iconClass(string $id, string $family, string $style): string
4141
{
4242
return match (true) {
4343
($family === 'classic') => "fa-{$style} fa-{$id}",
44-
($family === 'duotone') => "fa-duotone fa-{$id}",
44+
($family === 'duotone') => "fa-duotone fa-{$style} fa-{$id}",
4545
($family === 'kit') => "fa-kit fa-{$id}",
4646
($family === 'kit-duotone') => "fa-kit-duotone fa-{$id}",
4747
default => "fa-{$family} fa-{$style} fa-{$id}",

0 commit comments

Comments
 (0)