Skip to content

Navigation: Social icons on a new line #35549

Description

@scruffian

Description

When social links are added to a navigation block they are forced onto a new line, rather than being horizontal:
Screenshot 2021-10-12 at 13 48 03

Step-by-step reproduction instructions

  1. Switch to emptytheme
  2. Add a navigation block
  3. Add some links to the block
  4. Add a social links block inside the block
  5. Look at the frontend - notice that the social links are on a new line.

Screenshots, screen recording, code snippet

Screenshot 2021-10-12 at 13 48 03

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Activity

  1. added
    [Block] Navigation
    on Oct 12, 2021
  2. added
    [Status] In Progress
    on Oct 18, 2021
  3. jasmussen commented on Oct 18, 2021

    @jasmussen
    Contributor

    I couldn't actually reproduce this one, despite testing with trunk and empty theme. Can you try your steps again on latest trunk? Nevertheless there was an issue I discovered in trying to reproduce this, which could potentially cause the issue you're seeing, so I pushed some tweaks in #35722 which might help here.

  4. scruffian commented on Oct 19, 2021

    @scruffian
    ContributorAuthor

    I agree this seems to not longer be an issue.

  5. pbking commented on Oct 20, 2021

    @pbking
    Contributor

    I'm afraid this is still an issue, but only when the navigation overlay menu is set to 'mobile'.

    Reproduced with emptytheme on /trunk of Gutenberg:

    <!-- wp:navigation {"overlayMenu":"mobile"} -->
    <!-- wp:navigation-link {"label":"a Blog page","type":"page","id":703,"url":"http://localhost:4759/?page_id=703","kind":"post-type","isTopLevelLink":true} /-->
    
    <!-- wp:navigation-link {"label":"Lorem Ipsum","type":"page","id":146,"url":"http://localhost:4759/?page_id=146","kind":"post-type","isTopLevelLink":true} /-->
    
    <!-- wp:social-links -->
    <ul class="wp-block-social-links"><!-- wp:social-link {"url":"http://pbking.com","service":"fivehundredpx"} /-->
    
    <!-- wp:social-link {"url":"http://pbking.com","service":"wordpress"} /--></ul>
    <!-- /wp:social-links -->
    <!-- /wp:navigation -->
    

    Editor (correct):

    View (not correct):

  6. reopened this on Oct 20, 2021
  7. jasmussen commented on Oct 20, 2021

    @jasmussen
    Contributor

    That could be related to an issue Ben reported as well. I'll take a look, thanks.

    I'm commenting on it! Perfect. And thanks for the steps to reproduce, it appears on the frontend only, when the block has responsiveness:

    Screenshot 2021-10-21 at 09 20 33

    I'll jump in.

  8. jasmussen commented on Oct 21, 2021

    @jasmussen
    Contributor

    Thanks for the patience. Actual fix in #35820.

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

Metadata

Metadata

Assignees

Labels

[Block] Navigation[Status] In Progress

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions