Skip to content

Commit e4d2240

Browse files
authored
fix: rgaa set button list in search page (#6801)
1 parent 6b8aeb2 commit e4d2240

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

packages/code-du-travail-frontend/src/modules/recherche/SearchPageClient.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -228,18 +228,18 @@ export const SearchPageClient: React.FC<SearchPageClientProps> = ({
228228
<h2 className={fr.cx("fr-h3")} lang="fr">
229229
Les thèmes suivants peuvent vous intéresser
230230
</h2>
231-
<div
231+
<ul
232232
className={fr.cx(
233233
"fr-grid-row",
234234
"fr-grid-row--gutters",
235235
"fr-grid-row--center",
236-
"fr-mt-3w"
236+
"fr-mt-3w",
237+
"fr-raw-list"
237238
)}
238239
>
239-
{themes.map((theme, index) => {
240-
return (
240+
{themes.map((theme, index) => (
241+
<li key={index} className={fr.cx("fr-mr-2w", "fr-mb-2w")}>
241242
<Button
242-
key={index}
243243
linkProps={{
244244
href: generateSearchLink(
245245
theme.source,
@@ -255,13 +255,12 @@ export const SearchPageClient: React.FC<SearchPageClientProps> = ({
255255
),
256256
}}
257257
priority="secondary"
258-
className={fr.cx("fr-mr-2w", "fr-mb-2w")}
259258
>
260259
{theme.title}
261260
</Button>
262-
);
263-
})}
264-
</div>
261+
</li>
262+
))}
263+
</ul>
265264
</section>
266265
)}
267266
</>

0 commit comments

Comments
 (0)