Skip to content

Added discord in social links.#68848

Merged
t-hamano merged 4 commits intoWordPress:trunkfrom
Gulamdastgir-Momin:fix/35487
Feb 4, 2025
Merged

Added discord in social links.#68848
t-hamano merged 4 commits intoWordPress:trunkfrom
Gulamdastgir-Momin:fix/35487

Conversation

@Gulamdastgir-Momin
Copy link
Copy Markdown
Contributor

@Gulamdastgir-Momin Gulamdastgir-Momin commented Jan 23, 2025

What?

FIxes: #35487

Adds Social Link variation for Discord.

How?

Added discord.js to block-library/icons to add the official svg. Added a line for exporting the icon. Added Discord to the list of services so it will use the correct block variation.

PS: This PR was closed, so I created a new PR.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 23, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: Gulamdastgir-Momin <gulamdastgir04@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: mrfoxtalbot <mrfoxtalbot@git.wordpress.org>
Co-authored-by: donalirl <donalirl@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@github-actions
Copy link
Copy Markdown

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @Gulamdastgir-Momin! In case you missed it, we'd love to have you join us in our Slack community.

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

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Jan 23, 2025
@carolinan carolinan added [Type] Enhancement A suggestion for improvement. [Block] Social Affects the Social Block - used to display Social Media accounts labels Jan 23, 2025
Copy link
Copy Markdown
Contributor

@t-hamano t-hamano left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

The code looks good overall, but the icon itself could be improved a bit. The current icon is slightly off-center:

discord

Additionally, it would be good to make the path exactly 20px wide, like the other icons.

I've tried adjusting the icon, but it didn't work. I'd be happy if someone from the @WordPress/gutenberg-design could provide the icon 🙏

@Gulamdastgir-Momin
Copy link
Copy Markdown
Contributor Author

I wonder why these unit test cases are failing 🤔

@t-hamano
Copy link
Copy Markdown
Contributor

t-hamano commented Feb 3, 2025

The reason is that the following two files have been deleted in this PR. These two files need to be restored:

  • test/integration/fixtures/blocks/core__separator-color.json
  • test/integration/fixtures/blocks/core__separator-custom-color.json

Copy link
Copy Markdown
Contributor

@t-hamano t-hamano left a comment

Choose a reason for hiding this comment

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

LGTM!

@WordPress/gutenberg-design Maybe I'm being a bit overly sensitive, but if there's room for improvement in the icon and you can provide an SVG, I'd be happy to follow up. For now, it looks good compared to the other icons, so I'd like to merge it.

image

@Gulamdastgir-Momin
Copy link
Copy Markdown
Contributor Author

Thanks, @t-hamano, for your approval and guidance. Really appreciated!

@t-hamano t-hamano merged commit edbd360 into WordPress:trunk Feb 4, 2025
@github-actions github-actions bot added this to the Gutenberg 20.3 milestone Feb 4, 2025
@Gulamdastgir-Momin Gulamdastgir-Momin deleted the fix/35487 branch February 4, 2025 05:08
Kallyan01 pushed a commit to Kallyan01/gutenberg that referenced this pull request Feb 24, 2025
* Added discord in social links.

* Remove separator color fixtures.

* Restore separator color fixture.

* Added svg version.

Co-authored-by: Gulamdastgir-Momin <gulamdastgir04@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: mrfoxtalbot <mrfoxtalbot@git.wordpress.org>
Co-authored-by: donalirl <donalirl@git.wordpress.org>
chriszarate pushed a commit to chriszarate/gutenberg that referenced this pull request Jul 1, 2025
* Added discord in social links.

* Remove separator color fixtures.

* Restore separator color fixture.

* Added svg version.

Co-authored-by: Gulamdastgir-Momin <gulamdastgir04@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: mrfoxtalbot <mrfoxtalbot@git.wordpress.org>
Co-authored-by: donalirl <donalirl@git.wordpress.org>
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 [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Social Icons Block: Add Discord to Supported Icons

3 participants