Skip to content

Commit 1f3d87f

Browse files
authored
Merge pull request #1033 from marcosarantesext/master
inclusao da tag alt images
2 parents e8899a9 + 3106031 commit 1f3d87f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
9+
### Added
10+
- Including alt tag value in Infocard's image
911

1012
## [3.161.27] - 2022-07-18
1113
### Changed

react/__tests__/components/__snapshots__/InfoCard.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ exports[`<InfoCard /> should render with image and text side by side 1`] = `
173173
class="infoCardImageContainer w-50-ns"
174174
>
175175
<img
176-
alt=""
176+
alt="CLICK HERE"
177177
class="infoCardImage"
178178
data-testid="half-image"
179179
src="my-image.com/image.png"
@@ -252,7 +252,7 @@ exports[`<InfoCard /> should wrap half image in a link with imageActionUrl 1`] =
252252
href="dummy"
253253
>
254254
<img
255-
alt=""
255+
alt="CLICK HERE"
256256
class="infoCardImage"
257257
data-testid="half-image"
258258
src="my-image.com/image.png"

react/components/InfoCard/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ const InfoCard = ({
224224
className={handles.infoCardImage}
225225
src={finalImageUrl}
226226
style={{ objectFit: 'cover' }}
227-
alt=""
227+
alt={formatIOMessage({ id: callToActionText, intl })}
228228
data-testid="half-image"
229229
/>
230230
</LinkWrapper>

0 commit comments

Comments
 (0)