Skip to content

Commit 66bd44f

Browse files
authored
Merge pull request #243 from ijlee2/il-10312019
Add presentation role to image in es-card if its alternate text is empty string
2 parents 4393303 + 827ae01 commit 66bd44f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/templates/components/es-card.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<li class="card" ...attributes>
22
{{#if @image}}
3-
<img class="card__image" src={{@image}} alt={{if @alt @alt ""}}>
3+
<img class="card__image" src={{@image}} alt={{if @alt @alt ""}} role={{unless @alt "presentation"}}>
44
{{/if}}
55
<div class="card-content">
66
{{yield}}

0 commit comments

Comments
 (0)