Skip to content

Commit

Permalink
aria-label on expand / close button
Browse files Browse the repository at this point in the history
  • Loading branch information
rachidatecs committed Oct 18, 2024
1 parent 96c77cd commit b06ffec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/registrar/assets/js/get-gov.js
Original file line number Diff line number Diff line change
Expand Up @@ -1883,11 +1883,13 @@ class MembersTable extends LoadTableBase {
spanElement.textContent = 'Close';
useElement.setAttribute('xlink:href', '/public/img/sprite.svg#expand_less');
buttonParentRow.classList.add('hide-td-borders');
toggleButton.setAttribute('aria-label', 'Close additional information');
} else {
hideElement(contentDiv);
spanElement.textContent = 'Expand';
useElement.setAttribute('xlink:href', '/public/img/sprite.svg#expand_more');
buttonParentRow.classList.remove('hide-td-borders');
toggleButton.setAttribute('aria-label', 'Expand for additional information');
}
}

Expand Down Expand Up @@ -2079,7 +2081,8 @@ class MembersTable extends LoadTableBase {
<button
type="button"
class="usa-button--show-more-button usa-button usa-button--unstyled display-block margin-top-1"
data-for=${member_id}
data-for=${member_id}
aria-label="Expand for additional information"
>
<span>Expand</span>
<svg class="usa-icon usa-icon--big" aria-hidden="true" focusable="false" role="img" width="24">
Expand Down

0 comments on commit b06ffec

Please sign in to comment.