From 69d74dc8a3968bc208063ad72d06604770abe64b Mon Sep 17 00:00:00 2001 From: Mel Wong <46764557+melwong-jcc@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:29:00 -0700 Subject: [PATCH] DCAS-138: remove unused aria-label code (#848) --- source/_patterns/01-atoms/icon/icons.svg | 2 +- source/_patterns/02-molecules/read-more/read-more.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/source/_patterns/01-atoms/icon/icons.svg b/source/_patterns/01-atoms/icon/icons.svg index 72eec7c99..d2e13dbf2 100644 --- a/source/_patterns/01-atoms/icon/icons.svg +++ b/source/_patterns/01-atoms/icon/icons.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/source/_patterns/02-molecules/read-more/read-more.js b/source/_patterns/02-molecules/read-more/read-more.js index ec32b3aa7..a13b278f1 100644 --- a/source/_patterns/02-molecules/read-more/read-more.js +++ b/source/_patterns/02-molecules/read-more/read-more.js @@ -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"; } });