3 ms·
the existing component needs to be styled slightly differently in this particular context. See my other comment in this thread (https://news.ycombinator.com/it
by onion2k 6y ago
the existing component needs to be styled slightly differently in this particular context.
See my other comment in this thread (https://news.ycombinator.com/item?id=24221241 https://news.ycombinator.com/item?id=24221241) for how I'm tackling that sort of problem at the moment. tl;dr Work out what the dev should be able to override in the style at runtime and make it a CSS var that's set inline in the component. As I said there, it might not be the best approach especially in very large apps, but it does seem to be working well for me.