Skip to content

Commit

Permalink
aria-label
Browse files Browse the repository at this point in the history
  • Loading branch information
Lescano713 committed Sep 1, 2024
1 parent 4016891 commit 80c21ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ function findId(id){
function buttonAddRemove(button,id,img){
button.innerHTML = "";
button.classList.add('buttonAdd');
button.type = 'button';
button.setAttribute('aria-label', `button ${id}`)
let amount;
// amount = findId(id).quantity || 0;
amount = !findId(id) ? 0 : findId(id).quantity;
Expand Down

0 comments on commit 80c21ca

Please sign in to comment.