Skip to content
Snippets Groups Projects
Commit 77f13e41 authored by Marlène SIMONDANT's avatar Marlène SIMONDANT
Browse files

fix(accessibility): news images

parent 1e0d9f4d
Branches
Tags
2 merge requests!846V3.1.0 (sans impression),!778fix(accessibility): news images
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
(keyup.enter)="showDetails(post)" (keyup.enter)="showDetails(post)"
> >
<div class="imageContainer"> <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 <img
*ngIf="!post.feature_image" *ngIf="!post.feature_image"
alt="" alt=""
......
...@@ -9,6 +9,7 @@ export class Post { ...@@ -9,6 +9,7 @@ export class Post {
title: string; title: string;
excerpt: string; excerpt: string;
feature_image: string; feature_image: string;
feature_image_alt: string;
html: string; html: string;
author: string; author: string;
tags: Tag[]; tags: Tag[];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment