-
Notifications
You must be signed in to change notification settings - Fork 74
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
Update SearchBar to better match comps #2042
Conversation
<ContextProvider> | ||
<SearchBar /> | ||
</ContextProvider> | ||
<> |
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.
Wow, nice!
Deploy preview for artsy-reaction ready! Built with commit 84b9595 |
1 similar comment
@@ -42,12 +42,15 @@ export const PreviewGridItem: React.SFC<PreviewGridItemProps> = ({ | |||
</Link> | |||
<Link href={artwork.href} noUnderline> | |||
<Box> | |||
<Title size="2"> | |||
<OverflowEllipsis size="2" italic> |
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.
👍
@@ -11,31 +12,34 @@ interface Props { | |||
|
|||
export const SuggestionItem: SFC<Props> = ({ href, display, label, query }) => { | |||
if (label === "FirstItem") { | |||
// `color="black100"` is misleading. | |||
// The actual color doesn't really matter - the child element controls the displayed color. | |||
// We specify color only because it makes the text not underlined on hover. |
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 seems like it would make a good API improvement PR
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.
Yeah, definitely. We've been talking about this quirk in the <Link>
component, and trying to figure out what to do with it. It meets the specs that were originally created in Zeplin, but it's confusing & misleading.
This thing is a beauty, great work 👍 |
…s from dancing while loading
🚀 PR was released in v14.0.13 🚀 |
This PR includes a variety of styling changes, with the goal of matching the auto-suggest search bar to the Zeplin comps.
Included:
overflow: ellipsis
for artist names (search for Fiona Banner, and you'll see)Here's what it looks like now!