Skip to content

Commit

Permalink
Add alt in image in custom template example (#3213)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkithelegendarypokemonster authored May 20, 2024
1 parent 0b5dc40 commit 9a0f23d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions MVCDemos/Views/TagBox/Overview.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
.InputAttr("aria-label", "Product")
.ItemTemplate(@<text>
<div class="custom-item">
<img src="<%- ImageSrc %>" />
<img src="<%- ImageSrc %>" alt="<%- Name %>. Picture"/>
<div class="product-name"><%- Name %></div>
</div>
</text>)
Expand Down Expand Up @@ -140,7 +140,7 @@
const popover = $('#popover').dxPopover('instance')
const tagImg = $('<img>', { class: 'tag-img' }).attr({
src: data.ImageSrc,
alt: data.Name
alt: `${data.Name}. Picture`
})
const tag = $('<div>')
.attr('aria-disabled', isDisabled)
Expand Down
4 changes: 2 additions & 2 deletions NetCoreDemos/Views/TagBox/Overview.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
.ValueExpr("ID")
.ItemTemplate(@<text>
<div class="custom-item">
<img src="<%- ImageSrc %>" />
<img src="<%- ImageSrc %>" alt="<%- Name %>. Picture" />
<div class="product-name"><%- Name %></div>
</div>
</text>)
Expand Down Expand Up @@ -139,7 +139,7 @@
const popover = $('#popover').dxPopover('instance')
const tagImg = $('<img>', { class: 'tag-img' }).attr({
src: data.ImageSrc,
alt: data.Name
alt: `${data.Name}. Picture`
})
const tag = $('<div>')
.attr('aria-disabled', isDisabled)
Expand Down

0 comments on commit 9a0f23d

Please sign in to comment.