
Should icons have internal padding, and does it matter if icon boundary boxes differ in codebase and figma?
Am having a dilema and conversation with a dev I work with.
He doesn't want icons to have internal padding and has built the components without it. However all of out figma icons do, and we've defined 5 boundary box sizes where the icon sits inside.
Tbh I prefer not having internal padding, as it is cleaner to use even from a design perspective when aligning itmes etc.
However all design systems seem to use icons with internal padding, and guidance also says this. For example, Google Material UI recommends to have 24x24px frames for the icons and that you add padding so that your icon is 20x20px inside the frame
Any opinionated thoughts I can gather? Thanks!