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

Search bar layout #59

Merged
merged 3 commits into from
May 15, 2014
Merged

Search bar layout #59

merged 3 commits into from
May 15, 2014

Conversation

mejackreed
Copy link
Contributor

This pull request fixes #2

I've gone through several iterations to get the functionality and responsiveness working correctly. Unfortunately I'm still not complete but the lacking responsive view is the one that we are still waiting to hear back on design. Will keep working on this, but I wanted to put it up to hopefully get some feedback.

screen shot 2014-05-08 at 7 35 06 pm

screen shot 2014-05-08 at 7 35 13 pm

screen shot 2014-05-08 at 7 35 31 pm

@@ -0,0 +1,3 @@
<button class="btn btn-default navbar-btn disabled">
catalog <span class="caret"></span>
</button>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I think we'll end up shipping this w/ only "Catalog" search at first and the word catalog is establishing the affordance for what will end up being more options. We may want to not have any indication that this is a physical button at the moment, but I'll let @jvine chime in on if shipping this as a physical button at this point makes sense.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's leave is as a button for now; I think it will be useful to get feedback on the concept. Can remove the carat later if necessary.

@mejackreed mejackreed changed the title [WIP] Search bar layout Search bar layout May 13, 2014
@jkeck
Copy link
Contributor

jkeck commented May 14, 2014

This needs a rebase @mejackreed

@jkeck
Copy link
Contributor

jkeck commented May 14, 2014

I think there are some questions around the placement of the Advanced, Browse, and Selections links after collapsing into the hamburger. Perhaps we can discuss at standup.

@mejackreed
Copy link
Contributor Author

Ok so new commit has breakpoints working like mocks and advanced button has caret removed

screen shot 2014-05-14 at 4 20 33 pm

screen shot 2014-05-14 at 4 20 38 pm

screen shot 2014-05-14 at 4 20 43 pm

@mejackreed
Copy link
Contributor Author

@jkeck also rebased

@jvine
Copy link
Contributor

jvine commented May 15, 2014

@mejackreed I just noticed this - the search box should not have placeholder text. In the mockups, the search box only has text in it when there are actual search terms - that's intentional.

@jkeck
Copy link
Contributor

jkeck commented May 15, 2014

@jvine the placeholder comes from Blacklight and has been around all along.

I have created #77 to address that so it doesn't hold up this PR.

@jkeck
Copy link
Contributor

jkeck commented May 15, 2014

@mejackreed since we're going the route of rendering the search form several times in this PR can we make sure we talk over our other options first. I would really like to make sure it's our only option if we decide to ship this.

@mejackreed
Copy link
Contributor Author

@jkeck Definitely... It doesn't feel elegant here and there is a JavaScript solution available instead

@jkeck
Copy link
Contributor

jkeck commented May 15, 2014

@mejackreed okay, so while not perfect, this is kind of what I'm thinking: search-bar...search-bar-idea

You can see the resulting partial https://github.com/sul-dlss/SearchWorks/blob/45a28fea155ba15db17cc9c89908b633d092e01f/app/views/shared/_search_bar.html.erb

And the the resulting display
large

medium

small

jkeck pushed a commit that referenced this pull request May 15, 2014
@jkeck jkeck merged commit 07afeb4 into master May 15, 2014
@jkeck jkeck deleted the search-bar branch May 15, 2014 19:08
@mejackreed mejackreed mentioned this pull request May 15, 2014
2 tasks
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.

Add Search bar layout
3 participants