-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Framework: Update search component (and instances) to use gridicons #1358
Conversation
Keep an eye open for wonkiness for the first one, we had troubles in the past and the component should be refactored. For reference see #109. |
Checked:
(1) My Sites → Blog Posts — the icon is misaligned (too high) when the dropdown is shown: (2) Editor → Author Selector — Alignment seems off. A (3) Editor → Category Search — Alignment is ok, seems slightly better with (4) Editor → Location Search — Alignment seems slightly off. Try maybe (5) My Sites → Themes — Top alignment slightly off. I'd go for 1px higher. (6) All mobile views seem misaligned: |
Hmm, I'm wondering if something didn't sync... All my screenshots were taken in Chrome. I'll double check and fix the remaining issues. Thanks for the solid review. |
I fixed the mobile alignment, but we should fix the failing test before merging this |
84b06ec
to
c5a7f47
Compare
I fixed the alignment of several other instances where there had been a hardcoded Instead of maintained the I verified on:
|
search open and close icons: replace all other instances of noticon references search: alignment multi author: align
…in the search component so that it is always vertically centered regardless of the height of the wrapping card Search: fixed a regression in the modal site-selector search due to my previous commit which made search vertically centered (assuming a 24px icon) Search: icon is now positioned correctly in every instance I could find, this includes the close icon Search: missed one in the site selector close icon
c5a7f47
to
85b24bc
Compare
👍 Thanks @rickybanister. Looks good. Rebased to squash the commits. |
Just to remind us, we should probably try to (in a new PR) make the gridicons be 18px and |
@kellychoffman tests should be fixed up with a24b1b1 |
Updated in here instead of making a new PR d26554b
Thanks! I'm still seeing errors :/ |
Checks are passing now. Thanks @timmyc. |
Not sure if related, but go to the posts view on a site and search for something. Then hit the X to cancel a search. Nothing happens. |
@MichaelArestad What browser? Can't seem to replicate. |
@kellychoffman Chrome Mac Tried clearing cache, rebuilding, etc. Definitely up to date on this branch. |
I just hit the same issue @MichaelArestad is showing on a different branch - so the issue is likely in master too. I'd say create a new issue for that specifically and not address it in this PR. |
Thanks for the video. I thought you were referring to the close button not clearing the search query out. Just tested, and I'm not seeing this in Staging. |
@kellychoffman for me I had to toggle around a bit between the various filters first, drafts, trash etc. Then went back to published and opened up the search utility. |
You're right. We can address in another PR. All good here? |
LGTM |
Framework: Update search component (and instances) to use gridicons
This is the first step in cleaning up all the searching instances: removing noticons for gridicons.
Section nav search:
![section nav](https://cloud.githubusercontent.com/assets/5835847/11648130/4e568afc-9d36-11e5-9af7-e31d54b30e59.png)
(My Sites > Blog posts for example)
Menu search
![menu](https://cloud.githubusercontent.com/assets/5835847/11648158/7f8d743c-9d36-11e5-93e8-e38a06846bff.png)
Author selector:
![author](https://cloud.githubusercontent.com/assets/5835847/11648119/27402608-9d36-11e5-8ce4-4b65ba7192af.png)
(Multi author site editor)
Category search:
![categories](https://cloud.githubusercontent.com/assets/5835847/11648120/274a603c-9d36-11e5-9bfd-4cea94f656a4.png)
(Category accordion in editor)
Location search:
![location](https://cloud.githubusercontent.com/assets/5835847/11648121/27590c68-9d36-11e5-80ad-18c790bcf494.png)
(More options accordion in editor)
(will squash before merging)