4 ms·
Since our designers use the language of pixels and we have the time to develop different breakpoints thoroughly, we tend to use that as well in our code. But I
by Brendinooo 4y ago
Since our designers use the language of pixels and we have the time to develop different breakpoints thoroughly, we tend to use that as well in our code. But I get a lot of value out of using ems in more local styles, in situations where I know the font size will be changing and I want certain things to scale with it.
One easy example is line-height on headings; font-size will change between breakpoints but you can usually pick a line-height so that you don't have to redefine that every time. Same with letter-spacing.
As to the accessibility concern - I've read it, but I've never been dinged on an audit for it. That's not some kind of conclusive non-happening because audits have problems of their own, but...I don't know, I guess I'd be interested in people talking about their experiences here, if they've had real-world situations where rems made things better for disabled users.