Skip to content

Commit a364171

Browse files
authored
MAJ des titres de la page de déclaration (#1280)
* update headings wording on statement page * remove copy statement page url button * update a11y statement and report page wordings * add top link to statement page * update changelog
1 parent e26b8c7 commit a364171

3 files changed

Lines changed: 22 additions & 44 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
<h2 class="fr-sr-only" id="2025">2025</h2>
66

7+
## 26/11/2025
8+
9+
#### <span aria-hidden="true">🐛</span> Corrections
10+
11+
- Corrige le libellé des titres de la page de déclaration d’accessibilité ([#1280](https://github.com/DISIC/Ara/pull/1280))
12+
713
## 19/11/2025
814

915
#### <span aria-hidden="true">🚀</span> Nouvelles fonctionnalités

confiture-web-app/src/pages/StatementPage.vue

Lines changed: 14 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { useRoute } from "vue-router";
55
import CopyIcon from "../components/icons/CopyIcon.vue";
66
import PageMeta from "../components/PageMeta";
77
import MarkdownRenderer from "../components/ui/MarkdownRenderer.vue";
8+
import TopLink from "../components/ui/TopLink.vue";
89
import { useNotifications } from "../composables/useNotifications";
910
import { useWrappedFetch } from "../composables/useWrappedFetch";
1011
import { REFERENTIAL } from "../enums";
@@ -21,20 +22,6 @@ useWrappedFetch(() => report.fetchReport(uniqueId));
2122
2223
const notify = useNotifications();
2324
24-
async function copyA11yStatementUrl() {
25-
const url = `${window.location.origin}/declaration/${uniqueId}`;
26-
27-
navigator.clipboard.writeText(url).then(() => {
28-
showCopyAlert.value = true;
29-
30-
notify(
31-
"success",
32-
undefined,
33-
"Le lien vers la déclaration a bien été copié dans le presse-papier."
34-
);
35-
});
36-
}
37-
3825
function getA11yLevel() {
3926
if (report.data!.accessibilityRate === 100) {
4027
return "totalement";
@@ -46,7 +33,6 @@ function getA11yLevel() {
4633
}
4734
4835
const statementContainerRef = ref<HTMLDivElement>();
49-
const showCopyAlert = ref(false);
5036
5137
async function copyA11yStatementHTML() {
5238
const tagsWithSpacesRegex = /<(?<tagName>\S+)(\s+)>/g; // "<XX >"
@@ -111,18 +97,10 @@ const siteUrl = computed(() => {
11197
<template>
11298
<template v-if="report.data">
11399
<PageMeta
114-
:title="`Déclaration d'accessibilité de ${report.data.procedureName}`"
100+
:title="`Déclaration daccessibilité à publier de ${report.data.procedureName}`"
115101
/>
116102

117-
<div class="fr-mb-4w heading">
118-
<h1 class="fr-m-0">Déclaration d’accessibilité</h1>
119-
<button
120-
class="fr-btn fr-btn--secondary fr-btn--icon-left fr-icon-links-fill"
121-
@click="copyA11yStatementUrl"
122-
>
123-
Copier le lien de la déclaration
124-
</button>
125-
</div>
103+
<h1 class="fr-mb-4w">Déclaration d’accessibilité à publier</h1>
126104

127105
<div v-if="!statementIsPublished" class="fr-alert fr-alert--info">
128106
<p class="fr-alert__title">Déclaration d’accessibilité indisponible</p>
@@ -156,7 +134,7 @@ const siteUrl = computed(() => {
156134
</p>
157135

158136
<p class="fr-mb-1v">
159-
URL du site :
137+
URL du site audité :
160138
<a v-if="siteUrl" class="fr-link" target="_blank" :href="siteUrl">
161139
{{ siteUrl }}
162140
<span class="fr-sr-only">(nouvelle fenêtre)</span>
@@ -165,13 +143,12 @@ const siteUrl = computed(() => {
165143
</p>
166144

167145
<p class="fr-mb-9w">
168-
Rapport d’audit :
169146
<RouterLink
170147
class="fr-link"
171148
target="_blank"
172149
:to="{ name: 'report', params: { uniqueId } }"
173150
>
174-
accéder au rapport d’audit
151+
Accéder au rapport d’audit
175152
<span class="fr-sr-only">(nouvelle fenêtre)</span>
176153
</RouterLink>
177154
</p>
@@ -193,7 +170,7 @@ const siteUrl = computed(() => {
193170
</li>
194171
</ol>
195172

196-
<h2>Document à intégrer sur le site audité</h2>
173+
<h2>Contenu à intégrer sur le site audité</h2>
197174

198175
<p>
199176
Cette déclaration d’accessibilité adopte un format obligatoire donné
@@ -388,24 +365,16 @@ const siteUrl = computed(() => {
388365
</li>
389366
</ul>
390367
</div>
368+
369+
<div class="top-link">
370+
<TopLink top-margin="3rem" />
371+
</div>
391372
</div>
392373
</template>
393374
</template>
394375
</template>
395376

396377
<style scoped>
397-
.heading {
398-
display: flex;
399-
justify-content: space-between;
400-
align-items: center;
401-
flex-wrap: wrap;
402-
gap: 1rem;
403-
}
404-
405-
.info-container {
406-
max-width: 49.5rem;
407-
}
408-
409378
.content {
410379
max-width: 58rem;
411380
}
@@ -422,4 +391,8 @@ const siteUrl = computed(() => {
422391
display: inline-block;
423392
font-style: italic;
424393
}
394+
395+
.top-link {
396+
text-align: end;
397+
}
425398
</style>

confiture-web-app/src/pages/report/ReportPage.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ watch(
254254
</p>
255255

256256
<p class="fr-mb-1v">
257-
URL du site :
257+
URL du site audité :
258258
<a v-if="siteUrl" class="fr-link" target="_blank" :href="siteUrl">
259259
{{ siteUrl }}
260260
<span class="fr-sr-only">(nouvelle fenêtre)</span>
@@ -273,13 +273,12 @@ watch(
273273
<strong>{{ report.data.context.auditorName }}</strong>
274274
</p>
275275
<p v-if="report.data.procedureInitiator">
276-
Déclaration d’accessibilité :
277276
<RouterLink
278277
:to="{ name: 'a11y-statement', params: { uniqueId } }"
279278
class="fr-link"
280279
target="_blank"
281280
>
282-
accéder à la déclaration
281+
Accéder à la déclaration d’accessibilité
283282
<span class="fr-sr-only">(nouvelle fenêtre)</span>
284283
</RouterLink>
285284
</p>

0 commit comments

Comments
 (0)