dobtco / dvl-core

Base styles for the DOBT View Layer.
https://design.dobt.co/
1 stars 1 forks source link

Custom dropdowns #7

Closed jrubenoff closed 9 years ago

jrubenoff commented 9 years ago

Breaking this out from dobtco/screendoor-v2#888.

Desired Outcome

jrubenoff commented 9 years ago

Proposed solution

dropdown

These are dropdowns with nested levels. When the user clicks the "Response for..." option, the second level slides in. They can either select a field label or go back to the top level.

I'm not wild about what happens to the dropdown button after they select a field, but it's a balance between keeping the button at a reasonable size and showing enough text that the user knows what it refers to.

ajb commented 9 years ago

Cool, this is an interesting pattern.

img

I'm assuming this is truncated after two lines? If so, how do you plan to achieve that?

I'm not wild about what happens to the dropdown button after they select a field, but it's a balance between keeping the button at a reasonable size and showing enough text that the user knows what it refers to.

I'm not entirely sure what you mean by this, can you show me? I have a guess.

jrubenoff commented 9 years ago

what happens to the dropdown button after they select a field

Referring to this:

screen shot 2014-11-20 at 3 29 17 pm

Ah, forgot to mention truncation. We can achieve it via max-height and the ellipses mixin. It might also make sense to do some server-side truncation to keep the DOM from getting too big, especially since you can duplicate this field for advanced search to add more queries.

jrubenoff commented 9 years ago

@ajb, are you good with this? Do you want me to finish coding this before we begin advanced search?

ajb commented 9 years ago

Yeah, sorry, didn't mean to leave you hanging or anything. This is all :+1:.

ajb commented 9 years ago

As for the order, I suspect that it doesn't really matter either way. Advanced search development won't be held up by the non-existence of this UI component.

jrubenoff commented 9 years ago

On Friday, I realized that a dual-pane popover is not going to look good whatsoever, because scrollbars exist.

Here's the new expanded state.

screen shot 2014-12-09 at 2 15 26 am

Will code this up within the next few days. I'm curious how performant the scrolling will be on a phone if you're ProPublica and have forty long questions in your project. Maybe anyone else on the team with a smartphone could test when it's built.