Skip to content

Commit

Permalink
Add alt labels to some images
Browse files Browse the repository at this point in the history
  • Loading branch information
bosschaert committed Sep 28, 2023
1 parent 8798643 commit 57ba8fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blocks/career-carousel/career-carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export default async function decorate(block) {
link.textContent = 'Read More '; // TODO
const arrow = document.createElement('img');
arrow.src = '/icons/angle-right-blue.svg';
arrow.alt = 'Read more';
arrow.classList.add('icon-angle-right-blue');
link.append(arrow);
a.append(link);
Expand Down Expand Up @@ -120,12 +121,14 @@ export default async function decorate(block) {
}
const la = document.createElement('img');
la.src = '/icons/angle-left-blue.svg';
la.alt = 'Previous person card';
la.classList.add('btn-angle');
la.onclick = () => scrollToAdjecent(buttons, slideDivs, careerSlides, false);
navButtons.prepend(la);

const ra = document.createElement('img');
ra.src = '/icons/angle-right-blue.svg';
ra.alt = 'Next person card';
ra.classList.add('btn-angle');
ra.onclick = () => scrollToAdjecent(buttons, slideDivs, careerSlides, true);
navButtons.append(ra);
Expand Down

0 comments on commit 57ba8fd

Please sign in to comment.