Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No TikTok icon for Social Icons block #21701

Closed
maddisondesigns opened this issue Apr 18, 2020 · 4 comments · Fixed by #26118
Closed

No TikTok icon for Social Icons block #21701

maddisondesigns opened this issue Apr 18, 2020 · 4 comments · Fixed by #26118
Labels
[Block] Social Affects the Social Block - used to display Social Media accounts Good First Issue An issue that's suitable for someone looking to contribute for the first time [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.

Comments

@maddisondesigns
Copy link

Describe the bug
WordPress 5.4 provided a new TikTok embed, however it didn't provide a TikTok icon for the Social Icons block

To reproduce
Steps to reproduce the behavior:

  1. Insert Social icons Block
  2. Try to insert a TikTok icon

Expected behavior
TikTok needs to be added to the list of Social Icons

Editor version (please complete the following information):

  • WordPress version: 5.4
  • Does the website has Gutenberg plugin installed, or is it using the block editor that comes by default? Default
  • If the Gutenberg plugin is installed, which version is it? [e.g., 7.6]

Desktop (please complete the following information):

  • OS: macOS 10.15.4
  • Browser: Firefox 75.0
@talldan talldan added [Block] Social Affects the Social Block - used to display Social Media accounts [Type] Enhancement A suggestion for improvement. Good First Issue An issue that's suitable for someone looking to contribute for the first time Needs Design Needs design efforts. labels Apr 20, 2020
@talldan
Copy link
Contributor

talldan commented Apr 20, 2020

Seems like a good suggestion!

Added 'Needs Design' as this will need an appropriate icon sourced.

@mattxwang
Copy link

mattxwang commented Apr 23, 2020

I don't mind tackling this on the weekend if nobody else is - just to double-check, I'll add a tiktok.js file in packages/block-library/src/social-link/icons and update the packages/block-library/src/social-link/variations.js file with the relevant information, + add it in the index.php file? Should I update any docs somewhere? How should I go about writing an E2E test?

@talldan
Copy link
Contributor

talldan commented Apr 24, 2020

@malsf21 Thanks for picking this up! What you mentioned sounds about right.

In terms of testing, there are some fixtures that test the block save output in this folder:
https://github.com/WordPress/gutenberg/tree/master/packages/e2e-tests/fixtures/blocks

You'd be looking to add a core__social-link-tiktok.html file. What I usually do is add the block in the editor and then grab the HTML for the block from the code editor view and paste it into the file.

Then running this command generates the other three files for the fixture:

GENERATE_MISSING_FIXTURES=y npm run test-unit test/integration/full-content/full-content.test.js

It doesn't look like there are any e2e tests for the social icons block, so I wouldn't worry about that on your PR, though separate PRs for e2e tests are always welcome. 😄

@mattxwang
Copy link

Great, thank you for the guidance @talldan! I've already added the relevant files on my local fork, and this weekend I'll add the core__social-link-tiktok.html file and related fixtures, and submit a PR to close this issue.

@noahshrader noahshrader added [Status] In Progress Tracking issues with work in progress and removed Needs Design Needs design efforts. labels Jul 16, 2020
mkaz added a commit that referenced this issue Oct 14, 2020
Adds the icons for Pateron, Telegram, and Tiktok

Closes: #25008, #24572, #21701
mkaz added a commit that referenced this issue Oct 20, 2020
* Social Icons: Adds Patreon, Telegram, Tiktok

Adds the icons for Pateron, Telegram, and Tiktok

Closes: #25008, #24572, #21701

* Add icons to PHP server-side rendering

* Fix TikTok capitalization and copy/paste miss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Social Affects the Social Block - used to display Social Media accounts Good First Issue An issue that's suitable for someone looking to contribute for the first time [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.
Projects
None yet
4 participants