mirror of
https://github.com/flarum/framework.git
synced 2025-05-24 07:39:56 +08:00
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:
@ -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}/>;
|
||||
}
|
||||
|
Reference in New Issue
Block a user