Skip to content
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

🐛 fix(account): accessibilité champs obligatoires [DS-3320] #652

Merged
merged 1 commit into from
Jul 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 1 addition & 19 deletions src/page/account/login/example/data/login.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -28,15 +19,6 @@ if (login.error) {

const fieldsetElements = [];

/*
fieldsetElements.push({
type: 'hint',
data: {
text: getText('hint.mandatory', 'form')
}
})
*/

const classes = [];
const attributes = {};

Expand Down Expand Up @@ -119,7 +101,7 @@ elements.push({

const data = {
id: uniqueId('login'),
legend: `<h2 class=${prefix}-h5>${getText('login.legend', 'login')}</h2>`,
legend: `<h2 class="${prefix}-h5">${getText('login.legend', 'login')}</h2>`,
elements: elements
};
%>
Expand Down
1 change: 0 additions & 1 deletion src/page/account/login/i18n/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions src/page/account/register/example/data/address.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const data = {
{
type: 'hint',
data: {
markup: 'p',
text: getText('hint.mandatory', 'form')
}
},
Expand Down
1 change: 1 addition & 0 deletions src/page/account/register/example/data/identity.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const data = {
{
type: 'hint',
data: {
markup: 'p',
text: getText('hint.mandatory', 'form')
}
},
Expand Down
3 changes: 2 additions & 1 deletion src/page/account/register/example/data/login.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ elements.push({
elements.push({
type: 'hint',
data: {
markup: 'p',
text: getText('hint.mandatory', 'form')
}
})
Expand Down Expand Up @@ -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')}</${markup}>`,
classes: [prefix + '-mb-0'],
elements: elements
};
Expand Down