Skip to content

Commit

Permalink
DCAS-138: remove unused aria-label code (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
melwong-jcc authored Oct 2, 2023
1 parent 1f46821 commit 69d74dc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion source/_patterns/01-atoms/icon/icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions source/_patterns/02-molecules/read-more/read-more.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ docReady(function () {

if (readmoreheading.hasAttribute("expanded")) {
readmoreheading.removeAttribute("expanded");
readmorebtn.setAttribute("aria-label", "Show more");
readmorebtntext.innerHTML = "More";
} else {
readmoreheading.setAttribute("expanded", "true");
readmorebtn.setAttribute("aria-label", "Show less");
readmorebtntext.innerHTML = "Less";
}
});
Expand Down

0 comments on commit 69d74dc

Please sign in to comment.