-
Notifications
You must be signed in to change notification settings - Fork 0
fix(Fieldset): rmv orientation and role and legend is now mandatory #1077
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
base: master
Are you sure you want to change the base?
Conversation
|
Storybook for this build: https://ds.equisoft.io/pr-1077/ |
|
Webapp for this build: https://ds.equisoft.io/pr-1077/webapp/ |
pylafleur
left a comment
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.
Ça va clasher un peu avec la PR des tokens de texte... Je crois qu'on devrait merger les tokens en premier, comme ça tu n'auras pas à les ajouter ici.
maboilard
left a comment
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.
C'est normal que les radio-button sont alignés à l'horizontal?
Ouin en s'en fou un peu, le layout devrait être géré à l'extérieur du composant (avec une grid par exemple). |
|
@LarryMatte Je viens de merger la PR des tokens de texte. Tu pourras probablement faire un rebase et tous les tokens dont tu as besoin devraient déjà être disponibles s'ils sont conformes au document de Marc. |
pylafleur
left a comment
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.
C'est probablement pas dans le scope de cette story mais les checkbox ne sont pas visiblement disabled lorsque leur fieldset l'est. Faudrait probablement utiliser un context dans le fieldset.
| </Legend> | ||
| )} | ||
| <Legend | ||
| {...legendProps /* eslint-disable-line react/jsx-props-no-spreading */} |
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.
C'était déjà comme ça mais je sais pas si tant qu'à demander toutes les props dans un objet, on devrait pas demander un component Legend directement? Et peut-être aussi accepter juste une string si tout le reste est par défaut?
Ou encore, legendText, legendSize? À quel point on veut rendre la légende stylable?
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.
Voir si ce que j'ai maintenant correspond mieux à ce que tu avais en tête.
https://equisoft.atlassian.net/browse/DS-1288
Enlever l'option d'avoir une orientation horizontal ou vertical sur le fieldset.
La
legendn'est plus optional.Il y avait également un attribut
rolequi avait été ajouté mais il n'était pas nécessaire.Pour les tokens de typo, j'ai ajouté ceux manquant mais il va p-e y avoir des modifications à apporter suite à la carte de Marc-andré https://equisoft.atlassian.net/browse/DS-1289