Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Cleanup Navigation #1365

Open
derweili opened this issue Mar 1, 2019 · 3 comments
Open

Cleanup Navigation #1365

derweili opened this issue Mar 1, 2019 · 3 comments
Milestone

Comments

@derweili
Copy link
Collaborator

derweili commented Mar 1, 2019

FoundationPress includes a bunch of navigation styling in the navigation.scss

This is special styling without any documentation. (Which causes problems for users using FoundationPress for the first time #1364)

FoundationPress is a Starter Theme is for WordPress implementing the foundation-sites framework
Because of this I don't see any reason why FoundationPress should implement own styles different to the foundation-sites standards unless WordPress requires those styles.

I recommend following changes:

@zkriszti
Copy link

Ole, thank you for this clean WP-starting theme.
However, talking about navigation, I think it is not really good practice making the menu responsive by creating two menu locations, rendering both in the DOM, and then just set "display: none" in CSS for whichever is not necessary in the current view. There should be only one menu location in the header, as we are talking about the same functional item ("header menu") regardless of size of viewport. Then apply CSS styling with media queries to this one. This is simple to solve by using flexbox (order), but if FoundationPress needs to support legacy browsers, it is still achievable by using floats.

@zkriszti
Copy link

Also, putting the hamburger icon into title-bar and the menu into top-bar makes changing responsive menu toggling (ie. make a different breakpoint only for the menu) a cumbersome task.

@nitrokevin
Copy link

nitrokevin commented Mar 11, 2019

As foundationpress is based on foundation, it needs to follow how foundation works, you need to suggest those changes to the foundation-sites team :)

@derweili derweili added this to the v2.10.6 milestone Apr 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants