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

New layout for topic page(/browse) #8568

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Conversation

lucascumsille
Copy link
Contributor

Relevant issue(s)

Fixes part of: #8445 (comment)

What does this do?

Tidy up the list views in /browse page. With this PR we make sure that headings with many items don't use a lot of vertical space.

Implementation notes

I thought about making accordions items instead of cards, but I wasn't really fond of the idea because:

  • Depending on how users interact with this page, there might be situations when they'll have to be doing a lot of clicking to see what is inside each category. Not sure if this would be an outliner case though.
  • My hunch is that the accordion approach seems more suitable for users that already know the site and roughly know what is inside each heading, but not so much for someone browsing.

To prevent the above we could include a checkbox that expands all the accordions in the page, and also allow them to open/close each item one by one. But not sure if this would be overcomplicating the problem.

Screenshots

Desktop view

Screen.Recording.2025-02-06.at.11.52.39.mov

Mobile view

Screen.Recording.2025-02-06.at.11.53.17.mov

Notes to reviewer


Have you updated the changelog? If this is not necessary, put square brackets around this: skip changelog

Currently there are not H2 elements in that page(besides the footer), so we jump from H1 to H3, which could be confusing for assistive devices.
On mobile the text has no padding on the sides because of the negative margin it inherits from @include grid-row($behavior: nest);
- Added a card layout, with max-height, this prevents cards with a long list to use more vertical space than needed.
- The list inside each card will be vertically scrollable if the list uses more space than the max-height set.
- Added number of coincidences for each heading, so it's more clear when a card has long list.
- Made the scrollbar visible all the time so it's more clear that some cards are vertically scrollable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant