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

Improve filter chip display in narrow containers / viewports #60696

Open
jameskoster opened this issue Apr 12, 2024 · 5 comments
Open

Improve filter chip display in narrow containers / viewports #60696

jameskoster opened this issue Apr 12, 2024 · 5 comments
Labels
[Feature] Data Views Work surrounding upgrading and evolving views in the site editor and beyond Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement.

Comments

@jameskoster
Copy link
Contributor

In #59696 the display of individual chips can be finessed.

But we still need to figure out the display of many filters in narrow containers / viewports. It's not a huge problem right now because the existing data views only have <=2 filters.

However, things like Posts or Media (#55238) can have many filter options, and this experience isn't ideal:

Screenshot 2024-04-12 at 10 12 11

Let's explore how to better display many chips in the filter UI.

@jameskoster jameskoster added [Type] Enhancement A suggestion for improvement. Needs Design Needs design efforts. [Feature] Data Views Work surrounding upgrading and evolving views in the site editor and beyond labels Apr 12, 2024
@jameskoster
Copy link
Contributor Author

The simplest thing to try here would be horizontal scrolling with a slightly different button appearance / layout:

horizontal.mp4
  • Add filter and Reset buttons fixed in position on the right
  • Add filter and Reset become icon buttons
  • Filter chips scroll horizontally

Some other things we might try to save space:

  • Remove the inline x buttons
  • Reduce chip size and internal padding

There are usability trade-offs to this though, so perhaps worth looking at separately.

@jameskoster jameskoster added Needs Design Feedback Needs general design feedback. and removed Needs Design Needs design efforts. labels Apr 12, 2024
@jameskoster
Copy link
Contributor Author

Another option would be to restrict display to X number of chips, and hide the others behind a + x more link:

Screenshot 2024-04-12 at 13 54 59

@jasmussen
Copy link
Contributor

The horizontal scrolling is a common practice on mobile devices and scales well. If paired with the scrollbar mixin, it could work well and potentially be simple to implement, at least as a starting point.

@SaxonF
Copy link
Contributor

SaxonF commented Apr 19, 2024

Something else we tried early on is if on mobile or list view, condense filters down into dropdown. We'd have an indicator "1" on filter icon. Relates a little to previous discussions about hiding view filters by default.

image

@SaxonF
Copy link
Contributor

SaxonF commented Apr 19, 2024

Horizontal scrolling is also nice though and an improvement over what we have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Data Views Work surrounding upgrading and evolving views in the site editor and beyond Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement.
Projects
Status: No status
Development

No branches or pull requests

3 participants