Icons sizes where being set on the .icon-${size} .icon-${size}:before, since we don't have any nested icon-${size} elements in our DOM it was (since always) being ignore, this made every icon just constraint to the size of the icon symbol itself (in most cases around 14 pixels height and auto width).
With this change the icons will actually take our sizes into account.
This PR also cleans up the icon component and wrapps it in a memo.
Icons sizes where being set on the
.icon-${size} .icon-${size}:before
, since we don't have any nestedicon-${size}
elements in our DOM it was (since always) being ignore, this made every icon just constraint to the size of the icon symbol itself (in most cases around 14 pixels height and auto width).With this change the icons will actually take our sizes into account.
This PR also cleans up the icon component and wrapps it in a memo.