From 77f13e41c5551186702cf0c85d75fd6247cc258a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marl=C3=A8ne=20SIMONDANT?= <msimondant@grandlyon.com>
Date: Thu, 4 Apr 2024 09:44:36 +0000
Subject: [PATCH] fix(accessibility): news images

---
 src/app/post/components/post-card/post-card.component.html | 2 +-
 src/app/post/models/post.model.ts                          | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/app/post/components/post-card/post-card.component.html b/src/app/post/components/post-card/post-card.component.html
index aeb808ddf..85341967a 100644
--- a/src/app/post/components/post-card/post-card.component.html
+++ b/src/app/post/components/post-card/post-card.component.html
@@ -7,7 +7,7 @@
   (keyup.enter)="showDetails(post)"
 >
   <div class="imageContainer">
-    <img *ngIf="post.feature_image" alt="Image du post" [src]="post.feature_image" />
+    <img *ngIf="post.feature_image" alt="{{ post.feature_image_alt }}" [src]="post.feature_image" />
     <img
       *ngIf="!post.feature_image"
       alt=""
diff --git a/src/app/post/models/post.model.ts b/src/app/post/models/post.model.ts
index 4adf291c1..9ba0fe3e6 100644
--- a/src/app/post/models/post.model.ts
+++ b/src/app/post/models/post.model.ts
@@ -9,6 +9,7 @@ export class Post {
   title: string;
   excerpt: string;
   feature_image: string;
+  feature_image_alt: string;
   html: string;
   author: string;
   tags: Tag[];
-- 
GitLab