-
Notifications
You must be signed in to change notification settings - Fork 65
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
Add desktop slideout menu #816
Conversation
This. And ideally, the ability to edit the "Menu" label (theme option?) It could be something like:
↓
Only visible when a site isn't using the Short Header. |
Oh yeah, that's a great idea! It'll be the first thing someone will want to change 😄 Thanks Thomas! |
* Replacing the menu area with a widget. * Making the secondary menu area always available.
* Moving the location of the toggle on small screens * Improve the customizer lable for the changeable toggle text * Hide text label offscreen when using the short menu
Improves customizer behaviour for the slide out menu, specifically adding links between the two associated panels, simplifying the labels, and hiding the slide out menu options when it's not set to display.
I've updated this PR in a few ways, detailed below. I'm marking as ready for review, but am still very interested in feedback on the approach: 😬 Updates include:
How to test the changes in this Pull Request:
15: Navigate to Customize > Header Settings, and check 'Short Header'; save and view on the front end to confirm there are no visual issues. The toggle should appear in line with the logo, next to the social nav links, but with no visible label:
Some questions:
|
I guess it's fine.
It's a bit of an edge case. Why would you turn it on and not use it... but I guess a check if is_active_sidebar would make sense to have here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks great and works as expected.
I have a few recommendations:
- For the buttons, instead of using position relative and top: 5px for the svg, you could simply use display: flex and align-items: center.
- The focus on these buttons looks odd since you have outline-offset: -4px. I'd suggest to change this to 0 or even 2/4px
- The margin between elements is not consistent (e.g.)
Thanks Thomas!
Good point! I've added an
Ah, that's working a lot nicer!
Updated to 0 -- I think it looks better, but let me know if you disagree!
Ah dang, my styles were relying on widget titles being present, which wouldn't always be the case. This should be consistent now, whether or not you've added a title. Just let me know if there's anything else! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks @laurelfulford!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is amazing, Laurel. Really well thought through - I think folks are going to be very pleased with this.
Thanks Thomas and Phil! Excited to see this land in the next release. |
# [1.4.0](v1.3.0...v1.4.0) (2020-04-01) ### Bug Fixes * correct menu name when checking for it in header ([#859](#859)) ([b560b28](b560b28)) * CSS changed by release process ([abb4bf0](abb4bf0)) * editor color palettes and secondary color by adding full, 6-digits, hex codes ([#857](#857)) ([0c800a1](0c800a1)) * make related posts styles more consistent between formats ([#761](#761)) ([b55746d](b55746d)) * make sure social links block doesn't inherit link color ([#846](#846)) ([66c927c](66c927c)) * only apply RSS icon to /feed ([#851](#851)) ([ce884ac](ce884ac)) ### Features * add a desktop slideout widget area ([#816](#816)) ([3ed6c77](3ed6c77)) * add option to collapse comments ([#820](#820)) ([f67ab51](f67ab51)) * add telephone icon to social menu ([#849](#849)) ([9812b28](9812b28))
🎉 This PR is included in version 1.4.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Docs have been completed for this feature. |
All Submissions:
Changes proposed in this Pull Request:
This PR starts the process of adding a 'slide out' menu to the header (#766).
It's opened up some questions for me, so I wanted to push up an in-progress PR and get some feedback. CCing @philipjohn (since you're working with the publications asking for this functionality), and @thomasguillot for a second opinion on how to handle it.
How do we work yet another button into the menu?
In working with the code, I think the best spot is to the left of the secondary menu. Unfortunately, at the moment, that secondary menu is not visible if you pick the 'Short Header' option. So if we went with this placement, I think that secondary menu space would need to be visible if you have a secondary menu and/or desktop slide out menu. The header overall would still be shorter -- the primary menu would still be in line with the logo -- but it will make the header taller.
Is there another placement I'm not thinking of?
Should this space allow more than menus?
Right now, the PR adds just one menu to this desktop space, and moves it into the mobile menu when viewed on smaller screens.
I don't want to over-complicate it, but I feel like we'll be asked about adding other simple things to this space -- like text, or other widget-like content. Which makes me wonder:
How to test the changes in this Pull Request:
To test what's currently in this PR:
npm run build
.Other information: