From 1d3bb8776ebbb53bc213c53670f098df309952ac Mon Sep 17 00:00:00 2001 From: hypnotoad08 Date: Mon, 2 Jun 2025 18:31:07 -0400 Subject: [PATCH] Add meaningful captions for accessibility attribues of the image --- src/app/app.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index bb0b73f..faac77c 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -111,6 +111,9 @@ export class AppComponent { enlargedWidth: i.width, enlargedHeight: i.height, title: i.description ? i.description : i.user.name, + caption: i.description + ? `A photo showing: ${i.description}` + : `A photo by ${i.user.name}`, }; }