openstate / jodal

Open gov data platform for journalists: all government data — monitor, filter, forward. (FKA jodal)
https://bron.live
6 stars 1 forks source link

Vertically expanding full-width search fields #123

Closed vanderburgt closed 12 months ago

vanderburgt commented 1 year ago

User story

As a user who wants to create and alert for multiple locations, I want the locations input field to accommodate multiple locations and keep them visible, so that I can assure that I have the relevant locations selected and remove the ones I don't need.

Acceptance criteria

  1. When the user initially opens the search form, the location field is a single-line input.
  2. As the user starts typing or adding location tags, the location field should automatically expand vertically to accommodate the entered tags.
  3. The expansion should happen smoothly without sudden jumps in the interface.
  4. The field's expansion should be responsive to the number of tags the user adds, adjusting its height accordingly.
  5. When I remove tags or clear the field, it should contract back to a single-line input.
  6. The design and behavior of the expanding location field should match the provided design and screencast.

Additional Information

Image Design and screencast for the expanding location field behavior are available:

Tasks (if any)

e.g. design, development, etc.