InseeFr / Lunatic-DSFR

Couche graphique pour Lunatic reposant sur le Système de Design de l'État (DSFR)
https://inseefr.github.io/Lunatic-DSFR/storybook/
MIT License
4 stars 6 forks source link

Support textarea #137

Closed romaintailhurat closed 7 months ago

romaintailhurat commented 8 months ago

For text answer longer than 249 characters we want to display a textarea instead of a simple input (see https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/champ-de-saisie).

ddecrulle commented 8 months ago

Today in Lunatic we display Textarea when we have in the json componentType: Textarea.

Do you want to display textArea in this case or when componentType is Input and maxLength loger then 249 ? If the second it's a Lunatic Issue. By the way I add TextArea component in Lunatic-DSFR.

romaintailhurat commented 8 months ago

Today in Lunatic we display Textarea when we have in the json componentType: Textarea.

Do you want to display textArea in this case or when componentType is Input and maxLength loger then 249 ? If the second it's a Lunatic Issue. By the way I add TextArea component in Lunatic-DSFR.

Maybe i don't get the idea here: from the designer point of view, she only specifies the length of the Pogues Text response. And in the case of this length being specify as greater than 249 we want to change the questionnaires visual.

ddecrulle commented 7 months ago

https://inseefr.github.io/Lunatic-DSFR/storybook/?path=/docs/components-textarea--docs

AnneHuSKa commented 7 months ago

https://inseefr.github.io/Lunatic-DSFR/storybook/?path=/story/components-textarea--default&args=darkMode:!false