Skip to content

Commit 4f8ba86

Browse files
authored
Merge pull request #538 from NullVoxPopuli/patch-4
Add default class handling for icons
2 parents 23799fa + a5a0614 commit 4f8ba86

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

addon/components/es-icon.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ export default class EsIconComponent extends Component {
1616
);
1717
}
1818

19+
if (!this.args.class) {
20+
return icons[this.args.icon];
21+
}
22+
1923
return icons[this.args.icon].replace(
2024
'<svg ',
2125
`<svg class="${this.args.class}"`

0 commit comments

Comments
 (0)