Skip to content

Commit

Permalink
fix: Adding missing alt property to Image for accessibility purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasOmar committed Jan 17, 2024
1 parent 665f2be commit f6465a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/atoms/Image/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const Image: React.FC<ImageProps> = ({
style = null,
containerStyle = null,
src,
alt = null,
fixedSize = 'is-1by1',
isRounded = false
}) => {
Expand Down Expand Up @@ -40,6 +41,7 @@ const Image: React.FC<ImageProps> = ({
className={imageClasses}
style={style ?? undefined}
src={src}
alt={alt ?? undefined}
/>
</figure>
)
Expand Down

0 comments on commit f6465a3

Please sign in to comment.