Skip to content
Snippets Groups Projects
Verified Commit ba9ef2be authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fix: image alt

parent 50fab414
No related branches found
No related tags found
1 merge request!9Version 0.4.0 🍾
Pipeline #1395 passed
......@@ -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>
);
......
......@@ -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))}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment