From a4d83843103bb59f5d74881f3e2b2eb971d653f4 Mon Sep 17 00:00:00 2001 From: Benjamin Sehl Date: Mon, 2 May 2022 15:08:36 -0400 Subject: [PATCH] Fixes #1165 by making a missing alt tag a console warning --- .../hydrogen/src/components/ModelViewer/ModelViewer.client.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hydrogen/src/components/ModelViewer/ModelViewer.client.tsx b/packages/hydrogen/src/components/ModelViewer/ModelViewer.client.tsx index e54aa87223..dfe010f29a 100644 --- a/packages/hydrogen/src/components/ModelViewer/ModelViewer.client.tsx +++ b/packages/hydrogen/src/components/ModelViewer/ModelViewer.client.tsx @@ -287,7 +287,7 @@ export function ModelViewer( } if (!data.alt) { - throw new Error(` requires the 'data.alt' prop`); + console.warn(` requires the 'data.alt' prop for accessibility`); } return (