-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add expand to `NavList` * Improved semantics * Remove styles * Add extra story * Add unit test coverage * Add Group unit test coverage * Add e2e test coverage * Add expanded to groups * Fix import * Change structure * Update stories, add ref * Update tests, add focus target * Add changeset * Remove `GroupContent` * Update to use context * Add useRef usage * Change name to `NavList.ShowMoreItem` * Update docs * test(vrt): update snapshots * Update .changeset/many-rivers-deny.md Co-authored-by: Josh Black <[email protected]> * Address some feedback * Memoize id value * Update w/ new prop `Pages` based on suggestion from Primer patterns * test(vrt): update snapshots * Remove story * Remove story test * Remove the correct story * Add condition for css modules feature flag * Update tests, docs, add ternary * Only allow for `Item` in `ShowMoreItem` * Fix lint issue * Add dependencies * Remove comment * Add data API * Some clean up for `NavList` * More clean up * Use `useMemo` instead * Update docs * Fix tests * Remove auto-import * Add `key` to story * PR review feedback * Type check * Update packages/react/src/NavList/NavList.tsx Co-authored-by: Josh Black <[email protected]> --------- Co-authored-by: Kate Higa <[email protected]> Co-authored-by: TylerJDev <[email protected]> Co-authored-by: Josh Black <[email protected]>
- Loading branch information
1 parent
a93a3fc
commit 6b137a4
Showing
25 changed files
with
685 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@primer/react': minor | ||
--- | ||
|
||
Add `NavList.ShowMoreItem` component to support showing more content within a `NavList`. |
Binary file added
BIN
+9.17 KB
...ponents/NavList.test.ts-snapshots/NavList-With-expand-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.21 KB
.../components/NavList.test.ts-snapshots/NavList-With-expand-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.01 KB
...ents/NavList.test.ts-snapshots/NavList-With-expand-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.17 KB
...apshots/components/NavList.test.ts-snapshots/NavList-With-expand-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.17 KB
...ponents/NavList.test.ts-snapshots/NavList-With-expand-dark-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.11 KB
...onents/NavList.test.ts-snapshots/NavList-With-expand-light-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.98 KB
...nts/NavList.test.ts-snapshots/NavList-With-expand-light-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.11 KB
...pshots/components/NavList.test.ts-snapshots/NavList-With-expand-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.11 KB
...onents/NavList.test.ts-snapshots/NavList-With-expand-light-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.7 KB
...s/NavList.test.ts-snapshots/NavList-With-group-expand-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.7 KB
...nents/NavList.test.ts-snapshots/NavList-With-group-expand-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.2 KB
...avList.test.ts-snapshots/NavList-With-group-expand-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.7 KB
...s/components/NavList.test.ts-snapshots/NavList-With-group-expand-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.7 KB
...s/NavList.test.ts-snapshots/NavList-With-group-expand-dark-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.6 KB
.../NavList.test.ts-snapshots/NavList-With-group-expand-light-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.1 KB
...vList.test.ts-snapshots/NavList-With-group-expand-light-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.6 KB
.../components/NavList.test.ts-snapshots/NavList-With-group-expand-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.6 KB
.../NavList.test.ts-snapshots/NavList-With-group-expand-light-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.