Skip to content

Commit

Permalink
Fix app name header, align email fields with status fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-oconnell committed Dec 19, 2024
1 parent a88c9cb commit 6141be6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions public/locales/en/email.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"error": {
"required": "The given name(s) is required."
},
"help-message": "Enter first name(s) <strong>and any middle name(s)</strong> of the person who the passport is for.",
"help-message": "Enter first name(s) <strong>and any middle name(s)</strong> of the person who the passport is for. <strong>Make sure the information you enter matches your passport application.</strong>",
"label": "Given name(s)"
},
"header": "Get your reference number",
Expand All @@ -57,7 +57,7 @@
"error": {
"required": "The surname is required."
},
"help-message": "Enter last name of the person who the passport is for.",
"help-message": "Enter last name of the person who the passport is for. <strong>Make sure the information you enter matches your passport application.</strong>",
"label": "Surname"
}
}
4 changes: 2 additions & 2 deletions public/locales/fr/email.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"error": {
"required": "Le(s) prénom(s) est(sont) obligatoire(s)."
},
"help-message": "Indiquez le(s) prénom(s) <strong>et le(s) deuxième(s) prénom(s)</strong> de la personne à qui le passeport est destiné.",
"help-message": "Indiquez le(s) prénom(s) <strong>et le(s) deuxième(s) prénom(s)</strong> de la personne à qui le passeport est destiné. <strong>Assurez-vous que les informations que vous indiquez correspondent à votre demande de passeport.</strong>",
"label": "Prénom(s) sur la demande"
},
"header": "Obtenir votre numéro de référence",
Expand All @@ -57,7 +57,7 @@
"error": {
"required": "Le nom de famille est obligatoire."
},
"help-message": "Indiquez le nom de famille de la personne à qui le passeport est destiné.",
"help-message": "Indiquez le nom de famille de la personne à qui le passeport est destiné. <strong>Assurez-vous que les informations que vous indiquez correspondent à votre demande de passeport.</strong>",
"label": "Nom de famille"
}
}
14 changes: 8 additions & 6 deletions src/components/ApplicationNameBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ const ApplicationNameBar = ({ text, href }: ApplicationNameBarProps) => {
return (
<div id="app-bar" className="bg-blue-dark">
<section className="container mx-auto p-4">
<Link
href={href}
className="font-body text-lg font-bold text-white underline md:text-[28px]"
>
{text}
</Link>
<h2>
<Link
href={href}
className="font-body font-bold text-white underline md:text-[30px]"
>
{text}
</Link>
</h2>
</section>
</div>
)
Expand Down
5 changes: 1 addition & 4 deletions src/pages/email.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,6 @@ const Email = () => {
{t('header')}
</h1>
<form onSubmit={handleFormikSubmit} id="form-email-esrf" noValidate>
<p className="max-w-prose">
<Trans i18nKey="header-messages.matches" ns="email" />
</p>
<p>
<Trans i18nKey="header-messages.required" ns="email" />
</p>
Expand Down Expand Up @@ -285,7 +282,7 @@ const Email = () => {
}
textRequired={t('common:required')}
required
helpMessage={t('surname.help-message')}
helpMessage={<Trans i18nKey="surname.help-message" ns="email" />}
/>
<DateSelectField
id="dateOfBirth"
Expand Down

0 comments on commit 6141be6

Please sign in to comment.