|
|
|
|
|
by martyfmelb
1288 days ago
|
|
I've struggled with maintaining ad-hoc rules for REMs and PX. In my experience, designers very rarely specify units on metrics and assume PX all the way. How do you feel about the coupling of "text-sized icons" to the size of text? Does an icon next to a label make the icon's size font-related in your view? My go-to heuristic lately is: "is this layout-related?" -> it gets the PX. "is this text-related?" gets REMs. Margins and padding are denoted "layout" -> PX. |
|
You got me there. :)
This is one place where I break "convention", but only because I view icons as glyphs. So maybe the REM rule can be generalized to glyphs and not text. I typically just set icons to be 1rem. Any other size I typically specify in pixels however, as the coupling for me only makes sense as long as the glyph is glyph-sized.
> Does an icon next to a label make the icon's size font-related in your view?
Yeah, if it's an inline glyph. If the icon and label are vertically stacked however, I'm more inclined to use pixels.