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: rgaa review 1 #6383

Merged
merged 4 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from 3 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 @@ -26,7 +26,7 @@ export const RelatedItems = ({
<div
className={fr.cx("fr-mb-2w", "fr-text--lead")}
role="heading"
aria-level={3}
aria-level={2}
>
<strong>{title}&nbsp;:</strong>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const Share = ({ title, metaDescription }: Props): JSX.Element => {

return (
<div className={fr.cx("fr-follow__social")}>
<div className={fr.cx("fr-mb-2w")} role="heading" aria-level={3}>
<div className={fr.cx("fr-mb-2w")} role="heading" aria-level={2}>
<span>Partager la page</span>
</div>
<ul className={fr.cx("fr-btns-group")}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import { fr } from "@codegouvfr/react-dsfr";
import { useEffect, useState } from "react";

export const FeedbackAnswered = () => {
const [titleRef, setTitleRef] = useState<HTMLHeadingElement | null>();
useEffect(() => {
titleRef?.focus();
}, [titleRef]);
return (
<>
<h2 className={fr.cx("fr-h5")}>Merci pour votre réponse.</h2>
<h2 className={fr.cx("fr-h5")} tabIndex={-1} ref={setTitleRef}>
Merci pour votre réponse.
</h2>
<p>
L’équipe du Code du travail numérique vous remercie pour votre réponse.
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const PrivacyPolicy = () => {
Vous êtes également en droit de saisir la Commission Nationale de
l’Informatique et des Libertés pour toute réclamation à{" "}
<Link
title="Adresser une réclamation (plainte) à la CNIL"
title="Utiliser l’adresse suivante pour adresser une réclamation (plainte) à la CNIL"
target="_blank"
href="https://www.cnil.fr/fr/cnil-direct/question/844"
>
Expand Down
Loading