Skip to content

Sharing / Theme Tools: update social icons to use single SVGs instead of icon font or SVG sprite #28861

Open
@jeherve

Description

@jeherve

The Jetpack plugin currently ships with 3 versions of elements of https://github.com/Automattic/social-logos :

While this works today, it has a few inconvenients:

  1. This complexity makes adding a new logo a multi-step process: add the logo in the source repo, release a new version of the package, start using the package in the Jetpack plugin, update the SVG sprite in the Jetpack plugin, update the icon font in the Jetpack plugin. This, of course, assuming the source repo tooling works in our favor (right now it doesn't, due to https://github.com/Automattic/social-logos/issues/116 )
  2. The icon font is problematic for display, and can cause issues in some scenarios: Shorten font url for "social-logos" font family. Causes 414 errors on some hosts. #6076, Social Logos CSS Not Optimized #13201, and Sharing: issues decoding Social Logos font on pages including sharing buttons #7148 are good examples.
  3. Relying on the SVG sprite in the Social Menu outputs all the SVGs on sites that may only need to display a few: Social Icons Widget / Social Menu Theme Tool: include only SVGs needed #16673

As part of #27817, maybe we could switch all our implementations to one single npm dependency and single SVGs that would be used when necessary. cc @davemart-in


Issues that could be closed if this were addressed:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Admin PageReact-powered dashboard under the Jetpack menuEpicFormerly "Primary Issue", or "Master Issue"[Feature] Extra Sidebar Widgets[Feature] SharingPost sharing, sharing buttons[Feature] Theme Tools[Focus] BlocksIssues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack[Plugin] JetpackIssues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/[Plugin] SocialIssues about the Jetpack Social plugin[Pri] Normal[Tools] Monorepo Setup[Type] EnhancementChanges to an existing feature — removing, adding, or changing parts of it

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions