Skip to content

Commit

Permalink
Fix unsupported aria attributes in dashboard (samvera#6980)
Browse files Browse the repository at this point in the history
* disable set aria-expanded

* fix samvera#6840

---------

Co-authored-by: Daniel Pierce <[email protected]>
  • Loading branch information
rodyoukai and dlpierce authored Dec 11, 2024
1 parent 1a642ac commit dd6f355
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/assets/javascripts/hyrax/collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ function getStatusActivity(){
}
else if(isCollapsed){
resultDiv.classList.remove("in");
resultDiv.setAttribute("aria-expanded", "false");
// resultDiv.setAttribute("aria-expanded", "false");
}else{
resultDiv.classList.add("in");
resultDiv.setAttribute("aria-expanded", "true");
// resultDiv.setAttribute("aria-expanded", "true");
}
}

Expand All @@ -55,10 +55,10 @@ function getStatusSettings(){
}
else if(isCollapsed){
resultDiv.classList.remove("in");
resultDiv.setAttribute("aria-expanded", "false");
// resultDiv.setAttribute("aria-expanded", "false");
}else{
resultDiv.classList.add("in");
resultDiv.setAttribute("aria-expanded", "true");
// resultDiv.setAttribute("aria-expanded", "true");
}
}

Expand Down

0 comments on commit dd6f355

Please sign in to comment.