-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
filter tweaks #107
Comments
The only potential downside would be requiring two props where we used to just require one, but this should prevent any accidental reordering from solely specifying options with an object. |
Great thoughts. I'm good to leave (1) out of here for now, can consider one or both of those ideas separately. I both like the idea in (2) and agree on the downside! The other issue is that having a I'd be good with what you propose if we rename the current Then the props are |
That sounds reasonable to me! Just a flag that this represents a possible transition from <Filter
title='Time periods'
options={['0', '1', '2', '3']}
labels={{0: '2013-2014', 1: '2015-2017', 2: '2018', 3: '2019': }}
values={values}
setValues={setValues}
/> to something like <Label>
Time periods
<Filter
options={['0', '1', '2', '3']}
labels={{0: '2013-2014', 1: '2015-2017', 2: '2018', 3: '2019': }}
values={values}
setValues={setValues}
/>
</Label> (drawing inspiration from |
why does the
|
otherwise yep, i'm liking it! |
Encountered two challenges while using the
Filter
component that I wanted to flag. Should be easy fixes.label
element makes a strong layout assumption (fixed margin of3
). There are at least two places now where the design needs something different. Showing three examples, the first one being the one I'm working on now. Not sure if the answer is to create some options here, or just realize that we'll often need to do something manual (which is what I'm doing now). In the current case, all I wanted was to adjust the margin, whereas use case on CDR Database requires a totally different layout.Object.keys
returns, which in the present use case is not the intended order. Maybe just anorder
prop with an array of keys?cc @katamartin
The text was updated successfully, but these errors were encountered: