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

Added WhatsApp icon to the Social Icon Block #42137

Merged
merged 2 commits into from
Jul 15, 2022

Conversation

paulopmt1
Copy link
Contributor

What?

I have added the Whatsapp icon to the Social Icons Block, as my first Gutenberg contribuition.

Why?

WhatsApp is really famous in Brazil, it's used for everything here, so I wanted my first Gutenberg contribution to impact these users.

This is related to: #30378

How?

Testing Instructions

  1. Open a Post or Page
  2. Add a Social Block
  3. Add the WhatsApp Icon
  4. Add content to it, normally https://wa.me/your-phone-number
  5. Save and make sure it appears as expected in the editor as well as the preview

Screenshots or screencast

In the editor:

image

Result in the preview:

image

@paulopmt1 paulopmt1 requested a review from ajitbohra as a code owner July 4, 2022 19:55
@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Jul 4, 2022
@github-actions
Copy link

github-actions bot commented Jul 4, 2022

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @paulopmt1! In case you missed it, we'd love to have you join us in our Slack community, where we hold regularly weekly meetings open to anyone to coordinate with each other.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

@talldan talldan added the Needs Design Feedback Needs general design feedback. label Jul 5, 2022
@skorasaurus skorasaurus added the [Block] Social Affects the Social Block - used to display Social Media accounts label Jul 5, 2022
@ndiego ndiego added the [Type] Enhancement A suggestion for improvement. label Jul 13, 2022
@ndiego ndiego self-requested a review July 13, 2022 14:25
@paaljoachim
Copy link
Contributor

paaljoachim commented Jul 14, 2022

Hi Paulo Marcos.

Thank you for your very first contribution to Gutenberg! It is much appreciated!

I tested the PR using the Gutenberg PR build. Using this method: https://make.wordpress.org/design/2021/03/03/testing-a-gutenberg-pull-request-pr/
Adding the WhatsApp icon looks identical to adding other social media icons.

Backend:
Screenshot 2022-07-14 at 13 36 02

Testing the Frontend with Twenty Twenty Two showed some weirdness which has I believe nothing to do with this PR, so feel free to skip this part.
Screenshot 2022-07-14 at 13 37 52

Testing the Frontend with Twenty Twenty One showed this:
Screenshot 2022-07-14 at 13 41 18

From what I see this PR in relation to design and functionality works as it should.
Both of the above screenshots shows what it would look like when hovering the cursor over the Whatsapp icon. Showing the status area of the browser with the link.

@paaljoachim paaljoachim removed the Needs Design Feedback Needs general design feedback. label Jul 14, 2022
@paaljoachim paaljoachim requested review from paaljoachim and removed request for paaljoachim July 14, 2022 11:48
@ndiego
Copy link
Member

ndiego commented Jul 14, 2022

@paulopmt1 this looks great! The PR is testing well and I see no issues. Can you try and rebase the PR, that hopefully will fix the failing check. I am also going to have someone check the svg. Looks good to me, but not my area of expertise. Once the failing checks are cleared and we have confirmation on the svg, I'll approve and we can get this merged!

@ndiego
Copy link
Member

ndiego commented Jul 14, 2022

@critterverse, @jameskoster or @javierarce would anyone be able to do a quick review of the new WhatsApp svg in this PR. Otherwise, the PR looks good to go once the failing check is corrected. Thanks for your help 🙏

@critterverse
Copy link
Contributor

Nice, agree that this is a great addition to the social icons. I redrew this to match the lineweight used in our other icons before realizing that we don't customize social icons to match our library and generally use the logo as is. So this LGTM!

Copy link
Member

@ndiego ndiego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good, lets 🚢!

@talldan talldan merged commit 3c62571 into WordPress:trunk Jul 15, 2022
@github-actions
Copy link

Congratulations on your first merged pull request, @paulopmt1! We'd like to credit you for your contribution in the post announcing the next WordPress release, but we can't find a WordPress.org profile associated with your GitHub account. When you have a moment, visit the following URL and click "link your GitHub account" under "GitHub Username" to link your accounts:

https://profiles.wordpress.org/me/profile/edit/

And if you don't have a WordPress.org account, you can create one on this page:

https://login.wordpress.org/register

Kudos!

@github-actions github-actions bot added this to the Gutenberg 13.8 milestone Jul 15, 2022
@paulopmt1
Copy link
Contributor Author

Thanks, @paaljoachim, @ndiego, and @critterverse for reviewing my first Gutenberg PR! I'm really happy to have my own code in Gutenberg, and will start a new task now!

@paulopmt1 paulopmt1 deleted the add/30378-add-whatsapp-social-icon branch July 15, 2022 11:39
@fluiddot
Copy link
Contributor

👋 I checked this change in the native version of the editor and worked fine 🎊 .

@bph bph added the Needs User Documentation Needs new user documentation label Aug 3, 2022
@Hativ
Copy link

Hativ commented Aug 29, 2022

If I change the icon color (with the setting of the block), the WhatsApp icon doesn't look good anymore and doesn't match the others:

image

@paaljoachim
Copy link
Contributor

Hi Hativ. @Hativ
Can you create a new github issue and link to this merged PR? It would make it easier for someone to tackle it.

@ndiego
Copy link
Member

ndiego commented Aug 29, 2022

@Hativ @paaljoachim I see what the issue is. I will create an issue and the corresponding PR to get this fixed.

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 First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository Needs User Documentation Needs new user documentation [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants