Skip to content

Commit

Permalink
refactor (accessibility) : LIGHTBOX improvements (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
codexarama committed Jun 11, 2021
1 parent 38b10b6 commit 81a0583
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const setGallery = (media) => {
}),
elmtFactory('span', {
tabindex: '-1',
id: 'content-reader',
class: 'visually-hidden',
},
`${media.likes}` + ' likes'
Expand Down
1 change: 1 addition & 0 deletions js/pro_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ fetch('FishEyeData.json')
setAttributes(input, {
id: 'likes' + i,
});
input.setAttribute('aria-describedby', 'content-reader')
}

// ----- footer section ----- //
Expand Down

0 comments on commit 81a0583

Please sign in to comment.