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
ModuleExpandable: added external collapsing control (expandedIndex and onExpandedChange) #1323
Conversation
✔️ Deploy preview for gestalt ready! 🔨 Explore the source changes: 12e0c88 🔍 Inspect the deploy logs: https://app.netlify.com/sites/gestalt/deploys/60049889b420990007e816d6 😎 Browse the preview: https://deploy-preview-1323--gestalt.netlify.app |
6ac9a56
to
8ee0956
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.
Thanks for this PR! The team discussed your approach and various alternatives, and we think you're on the right track. I suggested some changes here to tighten up the API and implementation a bit. I haven't actually played around with this code, so please let me know if you run into any problems with this tweaked approach.
@galaxy0101 Here a few thoughts: https://www.loom.com/share/b2289b7eadab46ffab05d221b9379dc0 Code is here: #1341 |
bacc039
to
24f4f3e
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.
This is looking great! I really like this approach now.
Sorry for the merge conflicts @galaxy0101 - looks like we were both working on Module |
585f8d8
to
12e0c88
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.
Looks great! Nice work, @galaxy0101 ! 🙂
* Add eye-hide icon (pinterest/gestalt#1337) * Add Module props and update Module.Expandable props (pinterest/gestalt#1323) * Add zIndex prop to Typeahead (pinterest/gestalt#1350) * Remove marginLeft and marginRight props in Box (pinterest/gestalt#1363) * Add onNavigation props to Provider/ActivationCard/Button/DropdownItem/IconButton/Link/TapArea (pinterest/gestalt#1364) * Add rel/target props to ActivationCard and ActionData (pinterest/gestalt#1384) * Add ScrollBoundaryContainer types (pinterest/gestalt#1394) * Add history icon * Add visit icon (pinterest/gestalt#1406) * Add type for Upsell.Form component (pinterest/gestalt#1396) * Add Jay Kim to definition owners * Fix lint errors * Add tests Co-authored-by: Jay Kim <jkim@pinterest.com>
ModuleExpandable: added external collapsing control (expandedIndex and onExpandedChange)
with Tests and Docs examples