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: accessibility #2310

Merged
merged 1 commit into from
Jun 24, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ export const RemunerationGenericForm = ({ mode }: { mode: Remunerations["mode"]
return (
<FormProvider {...methods}>
<form onSubmit={handleSubmit(onSubmit)} noValidate>
<p className="fr-text--xs">Les champs suivis d'une * sont obligatoires</p>
<AlertMessage title="Erreur" message={errors.catégories?.root?.message} />
<ClientAnimate>
<ClientOnly fallback={<SkeletonForm fields={2} />}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const RemunerationCoefficientAutrePage = () => {
return (
<>
<DeclarationStepper stepName={stepName} />
<p className="fr-text--xs">Les champs suivis d'une * sont obligatoires</p>
<h4>Ecarts de rémunération par niveau ou coefficient et tranche d'âge en % *</h4>
<p>
Il faut saisir les écarts de rémunération en % avant application du seuil de pertinence uniquement pour les
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const RemunerationCoefficientBranchePage = () => {
<>
<AlertExistingDeclaration />
<DeclarationStepper stepName={stepName} />

<p className="fr-text--xs">Les champs suivis d'une * sont obligatoires</p>
<h4>Ecarts de rémunération par niveau ou coefficient et tranche d'âge en % *</h4>
<p>
Il faut saisir les écarts de rémunération en % avant application du seuil de pertinence uniquement pour les
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const RemunerationCSPPage = () => {
return (
<>
<DeclarationStepper stepName={stepName} />

<p className="fr-text--xs">Les champs suivis d'une * sont obligatoires</p>
<h4>Ecarts de rémunération par CSP et tranche d'âge en % *</h4>
<p>
Il faut saisir les écarts de rémunération en % avant application du seuil de pertinence uniquement pour les CSP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ const formSchema = z
.object({
populationFavorable: z.string().optional(),
résultat: z
.number({ invalid_type_error: "La valeur est obligatoire" })
.number({
invalid_type_error: "La valeur doit être un nombre entier",
required_error: "La valeur est obligatoire",
})
.int("La valeur doit être un nombre entier")
.lte(5, NOT_HIGHER_THAN_N_RESULT(5))
.gte(0, NOT_BELOW_0),
Expand Down
Loading