From 5514b43677946c19bd931c419b5c2241844ef345 Mon Sep 17 00:00:00 2001 From: zellerbaptiste Date: Mon, 3 Jul 2023 16:45:05 +0200 Subject: [PATCH] fix(a11y): met a jour le tag des mentions champs obligatoires --- .../account/login/example/data/login.json.ejs | 20 +------------------ src/page/account/login/i18n/fr.yml | 1 - .../register/example/data/address.json.ejs | 1 + .../register/example/data/identity.json.ejs | 1 + .../register/example/data/login.json.ejs | 3 ++- 5 files changed, 5 insertions(+), 21 deletions(-) diff --git a/src/page/account/login/example/data/login.json.ejs b/src/page/account/login/example/data/login.json.ejs index 886b87d75..e6271bc16 100644 --- a/src/page/account/login/example/data/login.json.ejs +++ b/src/page/account/login/example/data/login.json.ejs @@ -9,15 +9,6 @@ const alert = { }; const elements = []; -/* -elements.push({ - type: 'paragraph', - data: { - content: getText('login.desc', 'login'), - size: 'sm' - } -}); - */ if (login.error) { elements.push({ @@ -28,15 +19,6 @@ if (login.error) { const fieldsetElements = []; -/* -fieldsetElements.push({ - type: 'hint', - data: { - text: getText('hint.mandatory', 'form') - } -}) - */ - const classes = []; const attributes = {}; @@ -119,7 +101,7 @@ elements.push({ const data = { id: uniqueId('login'), - legend: `

${getText('login.legend', 'login')}

`, + legend: `

${getText('login.legend', 'login')}

`, elements: elements }; %> diff --git a/src/page/account/login/i18n/fr.yml b/src/page/account/login/i18n/fr.yml index 66b0b9f9f..ae231576c 100644 --- a/src/page/account/login/i18n/fr.yml +++ b/src/page/account/login/i18n/fr.yml @@ -8,7 +8,6 @@ connect: login: legend: Se connecter avec son compte desc: Description — Lorem ipsum dolor sit amet, consectetur adipiscing elit. - hint: Sauf mention contraire, tous les champs sont obligatoires. credentials: identifiants password: Mot de passe username: diff --git a/src/page/account/register/example/data/address.json.ejs b/src/page/account/register/example/data/address.json.ejs index 70cfa2ebc..cd46c039e 100644 --- a/src/page/account/register/example/data/address.json.ejs +++ b/src/page/account/register/example/data/address.json.ejs @@ -9,6 +9,7 @@ const data = { { type: 'hint', data: { + markup: 'p', text: getText('hint.mandatory', 'form') } }, diff --git a/src/page/account/register/example/data/identity.json.ejs b/src/page/account/register/example/data/identity.json.ejs index caf5d71d2..6e16ddac5 100644 --- a/src/page/account/register/example/data/identity.json.ejs +++ b/src/page/account/register/example/data/identity.json.ejs @@ -10,6 +10,7 @@ const data = { { type: 'hint', data: { + markup: 'p', text: getText('hint.mandatory', 'form') } }, diff --git a/src/page/account/register/example/data/login.json.ejs b/src/page/account/register/example/data/login.json.ejs index 94df37013..25373d2a9 100644 --- a/src/page/account/register/example/data/login.json.ejs +++ b/src/page/account/register/example/data/login.json.ejs @@ -16,6 +16,7 @@ elements.push({ elements.push({ type: 'hint', data: { + markup: 'p', text: getText('hint.mandatory', 'form') } }) @@ -79,7 +80,7 @@ elements.push({ const data = { id: uniqueId('login'), - legend: `<${markup} class=${prefix}-h5>${getText('login.legend', 'register')}<${markup}/>`, + legend: `<${markup} class="${prefix}-h5">${getText('login.legend', 'register')}`, classes: [prefix + '-mb-0'], elements: elements };