-
Notifications
You must be signed in to change notification settings - Fork 116
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
NavList::Group - Pagination doesn't work if there's more than one group in the NavList #1885
Comments
Thanks for filing, we're going to move this to the backlog. When you have time, happy to help you contribute a fix. |
Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days. |
So, I took a look at this bug this week. It looks like the specific issue referencing On the other hand, users are still only able to add the "show more items" link to the first group in the NavList, which feels unexpected. Is this a use case that we intended to support? For context, this is a pattern that GitHub's global navigation uses in the left hand side panel to paginate repos & teams, which are in separate groups. We ended up working around the limitation by extending the PVC classes into the app and overriding some methods, but it might be nice to support this at the component level. /cc @lesliecdubs |
Thanks for diving in @strackoverflow!
Good question! I think we likely want someone from Primer Design to weigh in on whether the component was designed to support this use case and, if not, whether we ought to consider it. I'm going to move this into the backlog for discussion at the next Primer Patterns Working Session (GitHub staff only) so we can get input on this. @strackoverflow if you'd like to attend to be part of the conversation, you can ask for the invite in #primer-design or add the "Design Infrastructure" Google calendar to see the next instance. |
Wow, sorry for the noise ^! Memex did some wild things with the labels on this issue while I was trying to get this added to the design queue. |
We discussed this during Primer patterns, and we agree that it's ok to have a "show more" link per group, not just one "show more" for the whole NavList. |
Thanks Mike! Looks like we now have a clear path forward on this. @strackoverflow this might not be a bad issue to pick back up this week if ambiguity remains around the other workstreams you're looking into. |
Steps to reproduce
NavList::Group
components with some itemswith_show_more_item
slot to the 2nd or 3rd group to enable paginationIt looks like this is because each
NavList::Group
component has adata-target
ofnav-list.list
, so when the<nav-list>
component executesthis.list.insertBefore
, it's apparently only targeting the first group in the NavList.The text was updated successfully, but these errors were encountered: