[openstreetmap/openstreetmap-website] Make share buttons use Bootstrap icons (PR #6738)

Marwin Hochfelsner notifications at github.com
Fri Jan 23 15:06:02 UTC 2026


Switching from custom SVGs to Bootstrap icons removes the inconsistency of logo sizes in the buttons:

<img src="https://github.com/user-attachments/assets/d8f7d78b-6872-4477-a668-079ad7c2b2ec" />
<img src="https://github.com/user-attachments/assets/9b37771e-7489-4e90-be9a-8c242280f1d1" />

Also, this quite considerably slims the codebase.

The `SHARE_BUTTONS_CONFIG` could be put in a YAML file in another PR if requested.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Make share buttons use Bootstrap icons

-- File Changes --

    D app/assets/images/share_button_icons/bluesky.svg (5)
    D app/assets/images/share_button_icons/email.svg (4)
    D app/assets/images/share_button_icons/facebook.svg (4)
    D app/assets/images/share_button_icons/linkedin.svg (4)
    D app/assets/images/share_button_icons/mastodon.svg (5)
    D app/assets/images/share_button_icons/share.svg (3)
    D app/assets/images/share_button_icons/telegram.svg (16)
    D app/assets/images/share_button_icons/x.svg (1)
    M app/assets/javascripts/share_buttons.js (5)
    M app/assets/stylesheets/common.scss (6)
    M app/helpers/share_buttons_helper.rb (78)
    M test/helpers/share_buttons_helper_test.rb (17)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/6738 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260123/082a2ef1/attachment.htm>


More information about the rails-dev mailing list