-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat(TreeView): TreeView and TreeItem components #787
Conversation
🦋 Changeset detectedLatest commit: 8a1fadc The changes in this PR will be included in the next version bump. 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 |
Codecov Report
@@ Coverage Diff @@
## dev #787 +/- ##
==========================================
- Coverage 86.58% 86.24% -0.35%
==========================================
Files 175 178 +3
Lines 4474 4523 +49
Branches 1519 1532 +13
==========================================
+ Hits 3874 3901 +27
- Misses 296 309 +13
- Partials 304 313 +9
Continue to review full report at Codecov.
|
80407a5
to
ad03a07
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great so far, nice work! 👏
A couple other notes:
- I noticed that the expand buttons don't look clickable (the cursor doesn't change to the pointer). Also, the accessibility check on storybook calls out
Buttons must have discernible text
so I think they are just missing the aria label attribute - We try not to commit the package-lock unless something has changed in our packages
packages/react-magma-dom/src/components/TreeView/useTreeView.ts
Outdated
Show resolved
Hide resolved
packages/react-magma-dom/src/components/TreeView/useTreeItem.ts
Outdated
Show resolved
Hide resolved
packages/react-magma-dom/src/components/TreeView/useTreeItem.ts
Outdated
Show resolved
Hide resolved
packages/react-magma-dom/src/components/TreeView/TreeView.stories.tsx
Outdated
Show resolved
Hide resolved
Although there are some outstanding TODOs, there will be a followup PR to clean that up. |
Co-authored-by: Collange, Etienne <[email protected]> Co-authored-by: Laura Silva <[email protected]> Co-authored-by: orion-cengage <[email protected]>
Co-authored-by: Collange, Etienne <[email protected]> Co-authored-by: Laura Silva <[email protected]> Co-authored-by: orion-cengage <[email protected]>
Co-authored-by: Collange, Etienne <[email protected]> Co-authored-by: Laura Silva <[email protected]> Co-authored-by: orion-cengage <[email protected]>
Co-authored-by: Collange, Etienne <[email protected]> Co-authored-by: Laura Silva <[email protected]> Co-authored-by: orion-cengage <[email protected]>
Co-authored-by: Collange, Etienne <[email protected]> Co-authored-by: Laura Silva <[email protected]> Co-authored-by: orion-cengage <[email protected]>
Co-authored-by: Collange, Etienne <[email protected]> Co-authored-by: Laura Silva <[email protected]> Co-authored-by: orion-cengage <[email protected]>
Co-authored-by: Collange, Etienne <[email protected]> Co-authored-by: Laura Silva <[email protected]> Co-authored-by: orion-cengage <[email protected]>
Co-authored-by: Collange, Etienne <[email protected]> Co-authored-by: Laura Silva <[email protected]> Co-authored-by: orion-cengage <[email protected]>
Co-authored-by: Collange, Etienne <[email protected]> Co-authored-by: Laura Silva <[email protected]> Co-authored-by: orion-cengage <[email protected]>
Co-authored-by: Collange, Etienne <[email protected]> Co-authored-by: Laura Silva <[email protected]> Co-authored-by: orion-cengage <[email protected]>
Issue: #180
What I did
Created a TreeView component.
Screenshots:
Checklist
How to test
Requirements and testing notes found in Notion: https://laura-silva.notion.site/TreeView-1fa9fc9d40654f7dba969a7fbaa492c6