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

Improve markup and css for WP #18

Merged
merged 1 commit into from
Nov 20, 2018
Merged

Improve markup and css for WP #18

merged 1 commit into from
Nov 20, 2018

Conversation

colemanw
Copy link
Collaborator

Overview

Improves the menu styling across CMSs, but especially for WP.

Before

Menu doesn't even appear in WP.

After

Menu appears, and looks nice :)

@colemanw
Copy link
Collaborator Author

@christianwach I think you'll find this makes the menubar work well in WP without the admin tools plugin. Additional css tweaks you think are important would be welcome.

@christianwach
Copy link

Menu appears, and looks nice

I can confirm that the menu does now appear on desktop-sized viewports. However, it is still not visible on viewports below 768px wide.

I think you'll find this makes the menubar work well in WP without the admin tools

Being the style pedant that I am, I still see a lot of enhancements in CAU's overrides, for example:

  • support for WordPress admin colour schemes
  • match menu height to WordPress admin bar
  • match positional behaviour of menu with WordPress admin bar
  • match shadows on sub-menu dropdowns
  • no overlap of WordPress menu hamburger below 768px

Will this extension become part of the core repo or will it be included via the build script? It'd be useful to know before tackling any of this outside of my CAU comfort zone.

@colemanw
Copy link
Collaborator Author

colemanw commented Nov 20, 2018

@christianwach thanks for the feedback. The plan is indeed to move the code from this extension into core and remove the existing menubar plugin from core (which as you've noted is abysmal).

So I'd like to get on the same page with you about necessary vs pedantic styles. I think it's fine to keep things like color-scheme tweaks in your CAU plugin, but IMO since the code in this extension is soon to be core code, we need to ensure all the functional css is working - the menu has the correct height and the hamburger menu functions correctly are in the must-haves I believe, and I'd really welcome a PR from you if you've developed any code for those things.

@christianwach
Copy link

I'd really welcome a PR from you if you've developed any code for those things.

Happy to help. Do you mean a PR on this repo?

@aydun
Copy link
Owner

aydun commented Nov 20, 2018

Ok, I'll merge this as is since making the menu appear on WP is a good thing - and look forward to another PR from @christianwach for further improvements.

@aydun aydun merged commit 4d165c9 into master Nov 20, 2018
@colemanw
Copy link
Collaborator Author

Happy to help. Do you mean a PR on this repo?

Yes, and thanks for all your excellent work on CAU so far. I'm hoping that by the time we move this extension into core we'll have a well-functioning menu that plays nice with every CMS (and to that end, let's open another issue about menubar placement in WP)

@colemanw colemanw deleted the css branch November 20, 2018 18:31
@colemanw
Copy link
Collaborator Author

@christianwach see #20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants