From ba9ef2becb3983e83bc9233cee2361c96106c2d2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com>
Date: Mon, 31 Oct 2022 17:18:41 +0000
Subject: [PATCH] fix: image alt

---
 examples/web/react/components/button/button.tsx           | 2 +-
 examples/web/react/components/keyboard-gb/keyboard-gb.tsx | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/web/react/components/button/button.tsx b/examples/web/react/components/button/button.tsx
index 7858e7ee..cd86316b 100644
--- a/examples/web/react/components/button/button.tsx
+++ b/examples/web/react/components/button/button.tsx
@@ -28,7 +28,7 @@ export const Button: FC<ButtonProps> = ({
     );
     const buttonImage = () => (
         <span className={classes()} onClick={_onClick}>
-            <img src={image} alt={imageAlt} />
+            <img src={image} alt={imageAlt || text || "button"} />
             <span>{text}</span>
         </span>
     );
diff --git a/examples/web/react/components/keyboard-gb/keyboard-gb.tsx b/examples/web/react/components/keyboard-gb/keyboard-gb.tsx
index 4a338965..63586730 100644
--- a/examples/web/react/components/keyboard-gb/keyboard-gb.tsx
+++ b/examples/web/react/components/keyboard-gb/keyboard-gb.tsx
@@ -25,7 +25,7 @@ export const KeyboardGB: FC<KeyboardGBProps> = ({ style = [], onKeyDown }) => {
     return (
         <div className={classes()}>
             <div className="keyboard-line">
-                <img className="dpad" src={require("./dpad.svg")} />
+                <img className="dpad" alt="dpad" src={require("./dpad.svg")} />
             </div>
             <div className="keyboard-line">
                 {["Q", "W", "E", "R"].map((k) => renderKey(k))}
-- 
GitLab