Skip to content

Commit 3a96e40

Browse files
Vincent HEMERYcoderabbitai[bot]
andauthored
feat(image): alt text in image
Use fallback values for alt property Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 243f6a3 commit 3a96e40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • app/client/src/widgets/ImageWidget/component

app/client/src/widgets/ImageWidget/component/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ class ImageComponent extends React.Component<
291291
>
292292
{/* Used for running onImageError and onImageLoad Functions since Background Image doesn't have the functionality */}
293293
<img
294-
alt={this.props.alt}
294+
alt={this.props.alt || this.props.widgetName || "Image"}
295295
onError={this.onImageError}
296296
onLoad={this.onImageLoad}
297297
src={this.props.imageUrl || this.props.defaultImageUrl}

0 commit comments

Comments
 (0)