Skip to content

Commit

Permalink
Accordion aria-label verbiage change
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasnadel committed Jun 30, 2020
1 parent ca757e4 commit 8b4760a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/assets/javascripts/cascade/level/accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ $(function () {
// SCROLL TO TOP OF ID
if ((currentAccordion).length > 1) {
$(currentToggle).text('Collapse');
$(currentToggle).attr('aria-label', 'collapse accordion');
}
}
// HANDLE COLLAPSE TOGGLES
Expand All @@ -77,6 +78,7 @@ $(function () {
$(currentExpand).focus();
if ((currentAccordion).length > 1) {
$(currentToggle).text('Expand');
$(currentToggle).attr('aria-label', 'expand accordion');
}
}
});
Expand Down

0 comments on commit 8b4760a

Please sign in to comment.