diff --git a/source/_patterns/02-components/entree-de-donnees/01-inputs.json b/source/_patterns/02-components/entree-de-donnees/01-inputs.json index df3cd718..7eecd775 100644 --- a/source/_patterns/02-components/entree-de-donnees/01-inputs.json +++ b/source/_patterns/02-components/entree-de-donnees/01-inputs.json @@ -10,6 +10,7 @@ "formGroupInputPlaceholder": { "text": "Placeholder" }, + "formGroupInputDescribedBy": "input-text-help-text-id input-text-caracter-count", "formGroupInputHelpText": { "id": "input-text-help-text-id", "text": "Texte d'assistance" @@ -31,12 +32,13 @@ "formGroupInputPlaceholder": { "text": "Placeholder" }, + "formGroupInputDescribedBy": "input-text-error-id", "formGroupInputHelpText": false, "formGroupInputError": { "id": "input-text-error-id", - "text": "Texte d'erreur", - "formAriaInputError": true - } + "text": "Texte d'erreur" + }, + "formAriaInputError": true } ], "inputTextState": [ @@ -45,7 +47,8 @@ "formGroupInputID": "form-control-input-text-disabled", "formGroupInputLabel": "Désactivé", "formGroupInputRequired": false, - "formGroupInputPlaceholder": "désactivé", + "formGroupInputPlaceholder": false, + "formGroupInputDescribedBy": false, "formGroupInputHelpText": false, "formGroupInputState": "disabled", "formGroupBtnClear": false @@ -56,7 +59,8 @@ "formGroupInputLabel": "Read-only", "formGroupInputClass": false, "formGroupInputRequired": false, - "formGroupInputPlaceholder": "read-only", + "formGroupInputPlaceholder": false, + "formGroupInputDescribedBy": false, "formGroupInputHelpText": false, "formGroupInputState": "readonly", "formGroupBtnClear": false diff --git a/source/_patterns/02-components/entree-de-donnees/02-inputs-number.json b/source/_patterns/02-components/entree-de-donnees/02-inputs-number.json index 94676eac..c399d529 100644 --- a/source/_patterns/02-components/entree-de-donnees/02-inputs-number.json +++ b/source/_patterns/02-components/entree-de-donnees/02-inputs-number.json @@ -9,11 +9,13 @@ "formGroupInputPlaceholder": { "text": "XX" }, + "formGroupInputDescribedBy": "input-number-help-text-id", "formGroupInputHelpText": { "id": "input-number-help-text-id", "text": "Texte d'assistance" }, "formGroupInputCounter": false + }, { "formGroupClass": "required", @@ -24,6 +26,7 @@ "formGroupInputPlaceholder": { "text": "XX" }, + "formGroupInputDescribedBy": "input-number-help-text-id input-number-caracter-count", "formGroupInputValue": "40", "formGroupInputHelpText": { "id": "input-number-help-text-id", @@ -48,6 +51,7 @@ "formGroupInputRequired": true, "formGroupInputLabel": "En erreur input vide", "formGroupInputPlaceholder": false, + "formGroupInputDescribedBy": "input-text-error-id", "formGroupInputHelpText": false, "formGroupInputError": { "id": "input-text-error-id", @@ -76,7 +80,7 @@ "formGroupInputLabel": "Read-only", "formGroupInputClass": false, "formGroupInputRequired": false, - "formGroupInputPlaceholder": "read-only", + "formGroupInputPlaceholder": false, "formGroupInputHelpText": false, "formGroupInputState": "readonly", "formGroupInputValue": "40" diff --git a/source/_patterns/02-components/entree-de-donnees/03-textareas.json b/source/_patterns/02-components/entree-de-donnees/03-textareas.json index e143cb0e..ed73c407 100644 --- a/source/_patterns/02-components/entree-de-donnees/03-textareas.json +++ b/source/_patterns/02-components/entree-de-donnees/03-textareas.json @@ -7,6 +7,7 @@ "formGroupInputPlaceholder": { "text": "Placeholder" }, + "formGroupInputDescribedBy": "form-group-textearea-help-text textarea-caracter-count", "formGroupInputHelpText": { "id": "form-group-textearea-help-text", "text": "Texte d'assistance." @@ -29,16 +30,17 @@ "formGroupInputPlaceholder": { "text": "Placeholder" }, + "formGroupInputDescribedBy": "form-group-textearea-help-text form-group-textarea-error-text", "formGroupInputHelpText": { - "id": "form-group-textearea-error-help-text", + "id": "form-group-textearea-help-text", "text": "Texte d'assistance." }, "formGroupTextareaRows": "5", "formGroupInputError": { "id": "form-group-textarea-error-text", - "text": "Texte d'erreur", - "formAriaInputError": true - } + "text": "Texte d'erreur" + }, + "formAriaInputError": true } ], "textareaState": [ @@ -51,16 +53,13 @@ "formGroupInputPlaceholder": { "text": "Placeholder" }, + "formGroupInputDescribedBy": "form-group-textearea-disabled-help-text ", "formGroupInputHelpText": { "id": "form-group-textearea-disabled-help-text", "text": "Texte d'assistance" }, "formGroupTextareaRows": "5", - "formGroupInputState": "disabled", - "formGroupInputError": { - "id": "form-group-textarea-disabled-error-text", - "text": "texte d'erreur" - } + "formGroupInputState": "disabled" } ] } diff --git a/source/_patterns/02-components/entree-de-donnees/06-fichier~apercu-off.json b/source/_patterns/02-components/entree-de-donnees/06-fichier~apercu-off.json index 86eaa376..fdecb7a4 100644 --- a/source/_patterns/02-components/entree-de-donnees/06-fichier~apercu-off.json +++ b/source/_patterns/02-components/entree-de-donnees/06-fichier~apercu-off.json @@ -1,9 +1,9 @@ { "formGroupClass": false, - "formGroupInputID": "form-control-input-file-v2", + "formGroupInputID": "form-control-input-file-v2-2", "formGroupInputLabel": "Libellé", - "formGroupFileID": "file-droparea-v2", - "formGroupFileDropID": "form-group-file-upload", + "formGroupFileID": "file-droparea-v2-2", + "formGroupFileDropID": "form-group-file-upload-2", "formGroupFileDropLabel": "Parcourir", "formGroupFileDropHelpText": "ou déposer votre fichier ici", "dropdownMenu": { diff --git a/source/_patterns/02-components/entree-de-donnees/06-fichier~apercu-on.json b/source/_patterns/02-components/entree-de-donnees/06-fichier~apercu-on.json index a967039a..f1ac3fea 100644 --- a/source/_patterns/02-components/entree-de-donnees/06-fichier~apercu-on.json +++ b/source/_patterns/02-components/entree-de-donnees/06-fichier~apercu-on.json @@ -1,9 +1,9 @@ { "formGroupClass": false, - "formGroupInputID": "form-control-input-file-v2", + "formGroupInputID": "form-control-input-file-v2-3", "formGroupInputLabel": "Libellé", - "formGroupFileID": "file-droparea-v2", - "formGroupFileDropID": "form-group-file-upload", + "formGroupFileID": "file-droparea-v2-3", + "formGroupFileDropID": "form-group-file-upload-3", "formGroupFileDropLabel": "Parcourir", "formGroupFileDropHelpText": "ou déposer votre fichier ici", "dropdownMenu": { diff --git a/source/_patterns/02-components/entree-de-donnees/_input-file-item-v2.mustache b/source/_patterns/02-components/entree-de-donnees/_input-file-item-v2.mustache index 202cd11a..bb042a0e 100644 --- a/source/_patterns/02-components/entree-de-donnees/_input-file-item-v2.mustache +++ b/source/_patterns/02-components/entree-de-donnees/_input-file-item-v2.mustache @@ -1,13 +1,13 @@