Closed (fixed)
Project:
Better Social Sharing Buttons
Version:
5.0.0-beta1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2025 at 22:58 UTC
Updated:
31 Dec 2025 at 02:59 UTC
Jump to comment: Most recent
Comments
Comment #2
electric.larry commentedI am almost done with this feature, I just need help with creating the icon sprite maps.
@Shelane, I can't seem to figure out, how to merge the new buttons' SVG graphics from the source folder into the spritemaps (social-icons--square.svg, social-icons--no-color.svg) in the dist folder. Could you please describe how to create/update those spritemaps?
Thanks!
Comment #4
electric.larry commentedIf someone wonders how to add more icons to the spritemap and stumbles upon this issue:
You can use svgo (https://www.npmjs.com/package/svgo) to optimize the icons and manually merge them into the spritemaps 'social-icons--no-color.svg' and 'social-icons--square.svg'.
Adding icons to a SVG spritemap is straight forward, no alignment necessary as required when creating a PNG spritemap. The icons are referenced by ID instead of positions.
Also make sure to add CSS variables for custom colors. See README.md for a list of available variable names, eg. --bss-color15.
Allow for two custom styles for the square icons:
Individual background color per icon, eg.
style="fill: var(--bss-color15, #009eeb)"And a foreground/icon color
--bss-color2which controls the icon color on all of the icons and defaults to white:style="fill: var(--bss-color2, #fff)"Comment #6
shelane