Skip to content

Commit a5a0614

Browse files
Add default class handling for icons
1 parent 23799fa commit a5a0614

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)