Skip to content

Commit

Permalink
fix(accessibility): update title to match with accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Nov 28, 2023
1 parent e5c6b88 commit d2ae285
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/pages/categories-geographiques/[id]/presentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default function GeographicalCategoryPresentationPage() {

return (
<Container fluid>
<Title as="h3" look="h4">
<Title as="h2" look="h4">
En un coup d'oeil
<Icon className="ri-eye-2-line fr-ml-1w" />
</Title>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/categories-geographiques/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function GeographicalCategoriesByIdPage() {
</Row>
<Col n="12 md-12">
<Row>
<Title as="h2">
<Title as="h1">
{`${data.nameFr} (${GEOGRAPHICAL_CATEGORIES_LABELS_MAPPER[data.level]})`}
<BadgeGroup className="fr-pt-1w">
<Badge text="Catégorie géographique" colorFamily="blue-ecume" />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/categories/[id]/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function CategoryByIdPage() {

</Row>
<Row className="flex--space-between flex--wrap-reverse">
<Title as="h2">
<Title as="h1">
{data.usualNameFr}
<BadgeGroup className="fr-pt-1w">
<Badge text="catégorie" type="info" />
Expand Down
4 changes: 2 additions & 2 deletions src/pages/categories/[id]/presentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function CategoryPresentationPage() {
<>
<Row>
<Col n="12">
<Title as="h3" look="h4">
<Title as="h2" look="h4">
En un coup d'oeil
<Icon className="ri-eye-2-line fr-ml-1w" />
</Title>
Expand Down Expand Up @@ -57,7 +57,7 @@ export default function CategoryPresentationPage() {
icon="ri-align-left"
/>
</Col>
<Title as="h3" look="h4">Présence sur le web</Title>
<Title as="h2" look="h4">Présence sur le web</Title>
<Row spacing="mb-5w">
<Wiki />
</Row>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/personnes/[id]/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function PersonByIdPage() {
</ButtonGroup>
</Row>
<Row className="flex--space-between flex--wrap-reverse">
<Title as="h2">
<Title as="h1">
{personName}
<BadgeGroup className="fr-pt-1w">
<Badge text="personne" type="info" />
Expand Down
4 changes: 2 additions & 2 deletions src/pages/personnes/[id]/presentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function PersonPresentationPage() {
<>
<Row>
<Col n="12">
<Title as="h3" look="h4">
<Title as="h2" look="h4">
En un coup d'oeil
<Icon className="ri-eye-2-line fr-ml-1w" />
</Title>
Expand Down Expand Up @@ -59,7 +59,7 @@ export default function PersonPresentationPage() {
</Col>
</Row>
<PersonCurrentMandates />
<Title as="h3" look="h4">Présence sur le web</Title>
<Title as="h2" look="h4">Présence sur le web</Title>
<Row gutters>
<Col n="12 md-6">
<Weblinks />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/prix/[id]/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ function PrizeByIdPage() {
</ButtonGroup>
</Row>
<Row>
<Title as="h2">
<Title as="h1">
{data.nameFr}
<BadgeGroup className="fr-pt-1w">
<Badge type="info" text="prix" />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/structures/[id]/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ function StructureByIdPage() {
<Row>
<Title as="h1">
{getName(data?.currentName)}
<Title className="fr-pr-1v" as="h6">{getOtherNames(data?.currentName)}</Title>
<Title className="fr-pr-1v" as="h2">{getOtherNames(data?.currentName)}</Title>
<BadgeGroup className="fr-pt-1w">
<Badge type="info" text="structure" />
{badgeColor()}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/termes/[id]/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ function TermByIdPage() {
</ButtonGroup>
</Row>
<Row>
<Title as="h2">
<Title as="h1">
{data.usualNameFr}
<BadgeGroup className="fr-pt-1w">
<Badge text="terme" type="info" />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/termes/[id]/presentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function TermPresentationPage() {
icon="ri-align-left"
/>
</Col>
<Title as="h3" look="h4">Présence sur le web</Title>
<Title as="h2" look="h4">Présence sur le web</Title>
<Row spacing="mb-5w"><Wiki /></Row>
<Row gutters>
<Col n="12 md-6">
Expand Down
4 changes: 2 additions & 2 deletions src/pages/textes-officiels/id.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default function OfficialTextByIdPage() {

</Row>
<Row>
<Title className="fr-mb-1w" as="h2">
<Title className="fr-mb-1w" as="h1">
{data.title}
<BadgeGroup className="fr-pt-1w">
<Badge text={data.nature} type="info" />
Expand Down Expand Up @@ -171,7 +171,7 @@ export default function OfficialTextByIdPage() {
</Col>
</Row>
<Bloc data={{ totalCount: data?.relatedObjects?.length }} error={error} isLoading={isLoading}>
<BlocTitle as="h3" look="h6">Objets liés au texte officiel</BlocTitle>
<BlocTitle as="h2" look="h6">Objets liés au texte officiel</BlocTitle>
<BlocContent>
{renderCards()}
</BlocContent>
Expand Down

0 comments on commit d2ae285

Please sign in to comment.