Remove fa-fw class from all icons

Often it is desirable to NOT have this class applied, and it is easier
to apply its styles if needed rather than un-apply it.
This commit is contained in:
Toby Zerner
2017-07-22 11:45:42 +09:30
parent 4f3e67714e
commit afc597c189
6 changed files with 7 additions and 3 deletions

View File

@ -6,7 +6,7 @@
* @return {Object}
*/
export default function icon(name, attrs = {}) {
attrs.className = 'icon fa fa-fw fa-' + name + ' ' + (attrs.className || '');
attrs.className = 'icon fa fa-' + name + ' ' + (attrs.className || '');
return <i {...attrs}/>;
}