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

Videomaker: Update Videomaker navigation #5059

Merged
merged 5 commits into from
Nov 24, 2021
Merged

Videomaker: Update Videomaker navigation #5059

merged 5 commits into from
Nov 24, 2021

Conversation

scruffian
Copy link
Member

@scruffian scruffian commented Nov 18, 2021

Changes proposed in this Pull Request:

Implements the idea in #4656 (comment)

Screenshot 2021-11-18 at 17 29 33

Related issue(s):

#4656

@scruffian scruffian added the [Theme] Videomaker Automatically generated label for videomaker. label Nov 18, 2021
@scruffian scruffian requested a review from a team November 18, 2021 13:28
@scruffian scruffian self-assigned this Nov 18, 2021
@pbking
Copy link
Contributor

pbking commented Nov 18, 2021

The main link font sizes seem pretty far off from target. Shouldn't they be much larger?

This change also has changes to the awards block patterns. Perhaps branched from another branch with unnecessary changes?

@pbking pbking linked an issue Nov 18, 2021 that may be closed by this pull request
@scruffian scruffian force-pushed the fix/4656 branch 2 times, most recently from c0e0402 to d593630 Compare November 18, 2021 17:07
@scruffian
Copy link
Member Author

You're right, I updated the font sizes.

The menu items should also be vertically centered. This is pretty hard to do with the currrent implementation and would take significant reworking, so if we want to do that I suggest we do it in a followup PR.

@kjellr
Copy link
Contributor

kjellr commented Nov 22, 2021

What is the best way to get a social navigation set up so that I can test that aspect of this? Using the customizer doesn't seem to do it:

Screen Shot 2021-11-22 at 3 16 52 PM

... and doing this in the site editor gets weird results:

Editor Front End
Screen Shot 2021-11-22 at 3 19 06 PM Screen Shot 2021-11-22 at 3 18 49 PM

@kjellr
Copy link
Contributor

kjellr commented Nov 22, 2021

Oh wait, my mistake. I can get it working in the site editor (But not in the customizer? 🤷)

@kjellr
Copy link
Contributor

kjellr commented Nov 22, 2021

I'm seeing very bizarre vertical spacing here (and in trunk) when I update this in the site editor:

Screen Shot 2021-11-22 at 3 24 07 PM

The menu items should also be vertically centered. This is pretty hard to do with the currrent implementation and would take significant reworking, so if we want to do that I suggest we do it in a followup PR.

Not sure if this is viable, but this spacing bug would actually be solved if we adopted justify-content: center instead of space-between inside of the expanded menu:

Screen Shot 2021-11-22 at 3 29 11 PM

@scruffian
Copy link
Member Author

Oh yeah nice one:
Screenshot 2021-11-24 at 13 51 44

@kjellr
Copy link
Contributor

kjellr commented Nov 24, 2021

I'm seeing some weirdness when there are a lot of items in the menu. They start flowing (and scrolling) horizontally:
Screen Shot 2021-11-24 at 9 01 48 AM
Screen Shot 2021-11-24 at 9 01 31 AM

@scruffian
Copy link
Member Author

OK I worked out what was going on here - the social navigation was missing as you said above - you shouldn't need to add it from the site editor.

The problem is that if you have justify content center then when there's not many menu items it looks like this:
Screenshot 2021-11-24 at 17 31 57

The alternative with space-between looks like this:
Screenshot 2021-11-24 at 17 35 29

@beafialho @kjellr which do you prefer?

@kjellr
Copy link
Contributor

kjellr commented Nov 24, 2021

I definitely prefer the top one. That looks right to me:

@scruffian
Copy link
Member Author

In that case can we merge this? :)

@@ -7,6 +7,6 @@
<!-- wp:site-tagline /-->
</div>
<!-- /wp:group -->
<!-- wp:navigation {"overlayMenu":"always","__unstableLocation":"primary","className":"is-style-blockbase-navigation-improved-responsive","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right","orientation":"horizontal"}} /-->
<!-- wp:navigation {"overlayMenu":"always","__unstableLocation":"primary","__unstableSocialLinks":"social","className":"is-style-blockbase-navigation-improved-responsive","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right","orientation":"horizontal"}} /-->
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this __unstableSocialLinks attribute about?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is how we show a social navigation inside a navigation block. It allows us to hide the social links inside the overlay, while still allowing menus to be updated via the customizer.

Copy link
Contributor

@kjellr kjellr left a comment

Choose a reason for hiding this comment

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

Left one minor comment, but this is working on my end. 👍

@scruffian scruffian merged commit dbd73c2 into trunk Nov 24, 2021
@scruffian scruffian deleted the fix/4656 branch November 24, 2021 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Theme] Videomaker Automatically generated label for videomaker.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

videomaker: Navigation (if needed)
3 participants