Skip to content

Conversation

@LarryMatte
Copy link
Contributor

@LarryMatte LarryMatte commented Feb 3, 2025

https://equisoft.atlassian.net/browse/DS-1288

Enlever l'option d'avoir une orientation horizontal ou vertical sur le fieldset.
La legend n'est plus optional.
Il y avait également un attribut role qui 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

@LarryMatte LarryMatte requested a review from a team as a code owner February 3, 2025 15:52
@LarryMatte LarryMatte changed the title fix(Fieldset): rmv orientation and role fix(Fieldset): rmv orientation and role and legend is now mandatory Feb 3, 2025
@github-actions
Copy link

github-actions bot commented Feb 3, 2025

Storybook for this build: https://ds.equisoft.io/pr-1077/

@github-actions
Copy link

github-actions bot commented Feb 3, 2025

Webapp for this build: https://ds.equisoft.io/pr-1077/webapp/

Copy link
Contributor

@pylafleur pylafleur left a 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.

Copy link

@maboilard maboilard left a 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?

@LarryMatte
Copy link
Contributor Author

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).

maboilard
maboilard previously approved these changes Feb 13, 2025
@pylafleur
Copy link
Contributor

pylafleur commented Feb 13, 2025

@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.

Copy link
Contributor

@pylafleur pylafleur left a 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 */}
Copy link
Contributor

@pylafleur pylafleur Feb 14, 2025

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?

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants