Uh oh!
There was an error while loading. Please reload this page.
Add expand to NavList - #4686
Conversation
🦋 Changeset detectedLatest commit: d22f63f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
size-limit report 📦
|
| trailingVisual?: Icon | string | ||
| leadingVisual?: Icon | string | ||
| trailingAction?: ActionListTrailingActionProps | ||
| 'data-expand-focus-target'?: string |
There was a problem hiding this comment.
I would love to not have to express this in GroupItems, as we don't want consumers adding this data-* attribute themselves. The only reason I have it here is so TS doesn't yell at me for adding it in itemArr['data-expand-focus-target'] = focusTarget.
| const teamEnabled = useFeatureFlag('primer_react_css_modules_team') | ||
| const staffEnabled = useFeatureFlag('primer_react_css_modules_staff') |
There was a problem hiding this comment.
Have to utilize this to account for both ActionList and NavList FFs.
TylerJDev
commented
Feb 12, 2025
@joshblack, should be ready for another review! I moved towards the data API that you suggested, and it seems to work great! Let me know if you have any suggestions or ways to improve it! 😁 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
joshblack
left a comment
There was a problem hiding this comment.
Congrats on putting this together! Just left a comment but approving since it's non-blocking 👍
Co-authored-by: Josh Black <joshblack@github.com>
👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/363691 |
🟢 golden-jobs completed with status |
👋 Hi, there are new commits since the last successful integration test. We recommend running the integration workflow once more, unless you are sure the new changes do not affect github/github. Thanks! |
Adds new component
NavList.ShowMoreItem, allows native support for "expanding" content within aNavList.Closeshttps://github.com/github/primer/issues/2637
Proposed API
Basic example:
Multiple expands:
Group example (storybook)
Changelog
New
NavList.ShowMoreItemRollout strategy
Testing & Reviewing
Merge checklist