4 ms·
it makes sense to apply user-select: none on draggable components, or those where the text is not actually text such as icon fonts. But it's one of those instan
by beaconstudios 7y ago
it makes sense to apply user-select: none on draggable components, or those where the text is not actually text such as icon fonts. But it's one of those instances where a tool that's legitimately useful in one small, specific instance is used more generally without due consideration (or in other examples such as `confirm()` on window exit, actively malicious). I'm sure a better solution for the legitimate use cases could be designed though.
- hunter2_ 7y ago> text is not actually text such as icon fonts Which is also hostile. Why not use something like an img/svg?
- beaconstudios 7y agoI don't know - I'm describing it, not justifying it.
- recursive 7y agoFewer requests maybe?
- baddox 7y agoI believe the major advantages of icon fonts over SVGs were potentially smaller file sizes and better browser compatibility. I think the former is minor if it exists at all, and the latter is probably a much smaller concern now.