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

Social block icons misshapen when used in navigation block #28340

Closed
talldan opened this issue Jan 20, 2021 · 13 comments · Fixed by #28448
Closed

Social block icons misshapen when used in navigation block #28340

talldan opened this issue Jan 20, 2021 · 13 comments · Fixed by #28448
Labels
[Block] Navigation Affects the Navigation Block [Block] Social Affects the Social Block - used to display Social Media accounts CSS Styling Related to editor and front end styles, CSS-specific issues. Good First Issue An issue that's suitable for someone looking to contribute for the first time [Type] Bug An existing feature does not function as intended

Comments

@talldan
Copy link
Contributor

talldan commented Jan 20, 2021

Description

When adding a social icon in a navigation block, the icons are oblong instead of circles.

Step-by-step reproduction instructions

  1. Add a navigation block.
  2. Start with an empty nav block
  3. Add a Social block within the nav block
  4. Add some social icons

Expected behaviour

The icons appear as circles, like they do when the block is used outside of navigation

Actual behaviour

The icons are oblong

Screenshots or screen recording (optional)

Screenshot 2021-01-20 at 10 42 02 am

WordPress information

  • WordPress version: 5.6
  • Gutenberg version: 9.8rc1 (on the master branch)
  • Are all plugins except Gutenberg deactivated? Y
  • Are you using a default theme (e.g. Twenty Twenty-One)? Y (2021)

Device information

  • Device: Desktop
  • Operating system: Mac OS
  • Browser: Brave
@talldan talldan added [Block] Navigation Affects the Navigation Block [Block] Social Affects the Social Block - used to display Social Media accounts [Type] Bug An existing feature does not function as intended CSS Styling Related to editor and front end styles, CSS-specific issues. Good First Issue An issue that's suitable for someone looking to contribute for the first time labels Jan 20, 2021
@Arash-11
Copy link
Contributor

Hey! I'm a newbie to open source but I'm going to take a stab at this issue.

@talldan
Copy link
Contributor Author

talldan commented Jan 21, 2021

That'd be great, thanks @Arash-11. Let us know if you need any assistance along the way.

@Arash-11
Copy link
Contributor

Thanks a lot @talldan, I'll definitely let you know.

@Arash-11
Copy link
Contributor

Hi @talldan. I apologize for the newbie question but I was wondering how long it usually takes for a pull request to get reviewed/merged? I'm just curious as this is my first main contribution :)

@jasmussen
Copy link
Contributor

Hi @Arash-11, thank you for your work. From looking at https://github.com/Arash-11/gutenberg/commit/d6b39014ec6bb4b8d3fafa886ea77bb393feb78e, the code seems like it might work, though I'd like to test it a bit more deeply. Have you made it into a pull request, though? I wasn't immediately able to find a pull request attached to your commit. That would make it easier to test. Thank you.

@Arash-11
Copy link
Contributor

Arash-11 commented Feb 1, 2021

Hi @jasmussen, I am happy to have been able to work on it. I did do a pull request: #28448 (comment)

But I might have done it wrong then, I didn't do a PR on my forked copy but on the original repo. Please let me know if I did this incorrectly.

@Arash-11
Copy link
Contributor

Arash-11 commented Feb 1, 2021

I apologize, looks like I missed the following step and did it wrong.

Step 7: Go to your forked repository on GitHub -- it will automatically detect the change and give you a link to create a pull request.

Should I do a pull request now, in my own forked copy?

@jasmussen
Copy link
Contributor

Should I do a pull request now, in my own forked copy?

Yes, exactly! That will allow me to check out your fork, and compile the pull request to test it. Thank you!

@Arash-11
Copy link
Contributor

Arash-11 commented Feb 1, 2021

Got you! I did a new pull request: https://github.com/Arash-11/gutenberg/pull/1#issue-565160695. Thank you so much for the help!

@talldan
Copy link
Contributor Author

talldan commented Feb 2, 2021

@Arash-11 Sorry for missing your pull request. Looks like you followed the right process when you made the PR #28448. It can sometimes take a little while for code to be reviewed, and other times it happens quickly.

To help link the issue and the PR together, it's good to write 'Fixes #28340' in the PR description instead of the title. Github automatically then links the issue and the PR together (https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue).

@Arash-11
Copy link
Contributor

Arash-11 commented Feb 2, 2021

@talldan No worries. Good to know I followed the correct process, and thanks for the information about the code review process.

Also, thanks for letting me know about how linking the issue and the PR works in GitHub - I didn't know this.

@jasmussen
Copy link
Contributor

I reviewed your PR, thanks again! Take a look, let me know how I can help.

@Arash-11
Copy link
Contributor

Arash-11 commented Feb 2, 2021

Thank you for reviewing my PR!

jasmussen pushed a commit that referenced this issue Feb 3, 2021
#28340) (#28448)

* Fixed Social Icons shape, and horizontal and vertical alignments (fixes #28340)

Original issue was that when adding Social Icons to a Navigation block, the icons would be oblong instead of circle. The icons only misshapened when size Small or Normal was selected. I also noticed that when a horizontal Nav block was added, the social icons wouldn't align horizontally, and in a vertical Nav block, the social icons wouldn't align vertically.

* removed padding-left:0.5em
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Navigation Affects the Navigation Block [Block] Social Affects the Social Block - used to display Social Media accounts CSS Styling Related to editor and front end styles, CSS-specific issues. Good First Issue An issue that's suitable for someone looking to contribute for the first time [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants