A11Y: Add role="button" to composer cancel button (#25228)

This commit is contained in:
Penar Musaraj 2024-01-11 11:08:52 -05:00 committed by GitHub
parent 9b61b72e33
commit d42159babe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -278,9 +278,12 @@
{{/if}}
</a>
{{else}}
<a href {{on "click" this.composer.cancel}} class="cancel">{{i18n
"close"
}}</a>
<a
href
{{on "click" this.composer.cancel}}
class="cancel"
role="button"
>{{i18n "close"}}</a>
{{/if}}
{{#if this.composer.site.mobileView}}