[openstreetmap/openstreetmap-website] Can we avoid inlining svgs into erb templates? (Issue #5880)
Marwin Hochfelsner
notifications at github.com
Sat Apr 5 19:30:04 UTC 2025
hlfan left a comment (openstreetmap/openstreetmap-website#5880)
Not being able to configure the color of external SVGs is one of the main reasons so many are inlined.
Maybe that external_svg helper could be built on to support currentColor?
https://github.com/openstreetmap/openstreetmap-website/blob/efe365738c02d8abaa4b5fa4ebebf18df644bee2/app/helpers/browse_helper.rb#L135-L144
Or try out [jamesmartin/inline_svg](https://github.com/jamesmartin/inline_svg)?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5880#issuecomment-2781054441
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/5880/2781054441 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250405/54bc07fa/attachment-0001.htm>
More information about the rails-dev
mailing list