[openstreetmap/openstreetmap-website] Use inline svg for notice icons (PR #4759)

Anton Khorev notifications at github.com
Mon May 6 11:38:47 UTC 2024


Allows to set fill to `currentColor` which adapts to dark mode.

Before:
![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/cf30c403-19f3-44f8-90f5-30a31b76e35a)
![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/299aa727-86d0-4739-a857-38da3446e863)

After:
![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/f805ae62-34a1-4b66-8626-9bedc1c219e1)
![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/35be0914-8bec-45ac-878c-dacf6b287955)

You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/4759

-- Commit Summary --

  * Use inline svg for notice icons

-- File Changes --

    D app/assets/images/notice.png (0)
    D app/assets/images/notice.svg (73)
    M app/helpers/svg_helper.rb (6)
    M app/views/account/deletions/show.html.erb (2)
    M app/views/layouts/_flash.html.erb (6)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/4759.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4759.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4759
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4759 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240506/0b5923a0/attachment.htm>


More information about the rails-dev mailing list