Skip to content

filter tweaks #107

@freeman-lab

Description

@freeman-lab

Encountered two challenges while using the Filter component that I wanted to flag. Should be easy fixes.

  1. The label element makes a strong layout assumption (fixed margin of 3). 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.

CleanShot 2021-11-14 at 11 06 23@2x

CleanShot 2021-11-14 at 11 05 57@2x

CleanShot 2021-11-14 at 11 06 33@2x

  1. We need a way to specify order. Currently it uses whatever order Object.keys returns, which in the present use case is not the intended order. Maybe just an order prop with an array of keys?

cc @katamartin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions