-
Notifications
You must be signed in to change notification settings - Fork 62
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
Feature/collapse card prop inverted #839
Conversation
Il y avait aussi un ajustement à faire sur les stories mais je ne suis plus sur. Est ce qu'il ne manque pas la story du CardBase ? |
J'ai fusionné le CollapseCard avec le CollapseCardBase donc on n'a plus qu'une seule story |
c499da6
to
d12c6b8
Compare
Kudos, SonarCloud Quality Gate passed! |
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.
Il faudrait prévoir le guide de migration du breaking change.
(https://github.com/AxaGuilDEv/react-toolkit/blob/master/MIGRATION.md)
? collapses[index] | ||
: child.props.collapse, | ||
isOpen: | ||
collapses[index] !== undefined ? collapses[index] : child.props.isOpen, |
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.
Peut-on trouver un meilleur nom pour collapses ? Il reste ambigu.
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.
par exemple : 'openComponents'
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.
Je trouve "openComponents" assez ambigu, car c'est bien un composant Collapse qui se ferme et s'ouvre.
De plus, le collapse en question n'est pas forcément true il peut être false.
Cette revue est offerte par l'équipe transverse |
? collapses[index] | ||
: child.props.collapse, | ||
isOpen: | ||
collapses[index] !== undefined ? collapses[index] : child.props.isOpen, |
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.
par exemple : 'openComponents'
J'ai ajouté le guide dans la PR. |
b28d0d4
d12c6b8
to
b28d0d4
Compare
5ab07ad
Related issue
Reference to the issue
Fixes #787
Description of the issue
The collapse property can be confusing so it will be replaced by isOpen.
I did a refacto that merges the CollapseCard and CollapseCardBase components because the only difference was the onToggle prop who could be add on CollapseCardBase.