-
Notifications
You must be signed in to change notification settings - Fork 83
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
Added ChevronIcon and Expander components. #160
Conversation
…l data changes instead of on every expand and collapse. Added unit tests.
…h component. Added some labels for the LabeledSwitch's interactive, non-changing labels example. Added Expander component to the exported modules.
I'm having some issues with the width and height of the fake button that the |
* Child element whose children represents content to be shown next to | ||
* the expander icon. | ||
*/ | ||
Label: any |
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.
We might not need this anymore since @ogupte has fixed the docs generator
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.
we do still need this for the time being, i need make the docs parsing better to support lucid child components
|
||
return ( | ||
<div | ||
{..._.omit(passThroughs, 'onExpand')} |
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.
is this omit necessary? div
probably ignores props it doesn't recognize.
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.
Good call. LOL
|
const nextLabel = _.first(Expander.Label.findInAllAsProps(nextProps)).children; | ||
|
||
if (currentLabel !== nextLabel) { | ||
this._labelKey++; |
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.
It's sad that this is necessary :(
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.
Agreed, we couldn't find any sane way to detect if the content changed :(
…s/lucid into feature/ANXR-190-expand-collapse Conflicts: src/components/Expander/Expander.jsx src/components/Expander/Expander.reducers.js src/components/Expander/Expander.spec.jsx
Docspot demo: http://docspot.devnxs.net/projects/lucid/feature-ANXR-190-expand-collapse/#/components/Expander
PR Checklist
common
at minimum)semver-
labels