A11Y: Add aria-label to modal close button (#13288)

This commit is contained in:
Penar Musaraj 2021-06-04 13:28:04 -04:00 committed by GitHub
parent 78029fd913
commit 2c6ceec9ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@
<div class="modal-inner-container">
<div class="modal-header {{headerClass}}">
{{#if dismissable}}
{{d-button icon="times" action=(route-action "closeModal" "initiatedByCloseButton") class="btn-flat modal-close close" title="modal.close"}}
{{d-button icon="times" action=(route-action "closeModal" "initiatedByCloseButton") class="btn-flat modal-close close" title="modal.close" ariaLabel="modal.close"}}
{{/if}}
{{#if title}}