-
Notifications
You must be signed in to change notification settings - Fork 32
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 functional search to header #9
Conversation
This is blocked on WordPress/gutenberg#35572 If that gets traction, then I think we're good to go ahead w/ the |
fdfdaa1
to
6779dd7
Compare
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.
Code looks fine, and well-documented.
Here are a few alignment issues I see in Firefox, running trunk for wporg-news-2021
and this branch for wporg-mu-plugins
. I realize this PR is not meant to be pixel-perfect, so feel free to disregard if these will be fixed later.
There's a very narrow window where the menu items wrap to a second line before they get hidden by the ellipses:
Also in that screenshot, you can see that the handle of the magnifier icon gets cut off.
On narrower screens, the right edge of the magnifier icon gets cut off:
When opening the mobile search menu item, the input label is doubled up:
Huh, I don't get that on mine. You've got 4bf2721 pulled, right? If so, is increasing
I don't see it much on my machine, but d826d31 should hopefully fix it
huh, that's explicitly hidden, and it works on my system: wporg-mu-plugins/mu-plugins/blocks/global-header-footer/postcss/header/search.pcss Lines 31 to 33 in d826d31
when you inspect that element, is the above rule absent? or is it overridden by something? |
I'm gonna merge this to avoid juggling branches, but I'll iterate based on your responses to my previous comment. |
I've got the
The Openverse link stops wrapping to a second line at 1478px.
🤔 When I inspect that element, the classname is |
🤔 huh, I'll open a new issue and look into it next week 👍🏻 |
See WordPress/wporg-news-2021#6
Builds on top of #8
Should roughly match the mockup, but not be pixel perfect. On mobile, click the icon to open menu; on desktop hover over it. searches should go to w.org/search to cover all sites.