Skip to content

Commit f59aa72

Browse files
Merge pull request #9 from ynfle/logos-alt-text
Corrected DEV logo and added profile pic alt text
2 parents cee24f3 + 30eee9b commit f59aa72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/card.component.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ template.innerHTML = // html
66
</style>
77
<div class="card">
88
<div class="header">
9-
<img class="dev-logo" src="https://d2fltix0v2e0sb.cloudfront.net/dev-badge.svg" alt="Saurabh Daware's DEV Profile">
9+
<img class="dev-logo" src="https://d2fltix0v2e0sb.cloudfront.net/dev-badge.svg" alt="DEV Logo">
1010
</div>
1111
<div class="content">
1212
@@ -84,7 +84,7 @@ export class DevCard extends HTMLElement{
8484

8585
header.innerHTML += // html
8686
`
87-
${(data.profilePic)?`<img class="profile-pic" src="${data.profilePic}">`:''}
87+
${(data.profilePic)?`<img class="profile-pic" src="${data.profilePic}" alt="${this.articles[0].user.name}'s DEV Profile">`:''}
8888
<div class="name-container" ${(data.profilePic)?'':'style="margin-left:20px;"'}>
8989
<span>${data.name}</span>
9090
<div class="view-profile-container">

0 commit comments

Comments
 (0)