fix(modal): remove close button title attribute, add aria-hidden to icons (#1308)

* fix(modal): close button should not have a title

* fix(modal): close icon should not have aria-label

* fix(modal): close button icons should have `aria-hidden="true"
This commit is contained in:
metonym 2022-05-18 19:00:21 -07:00 committed by GitHub
commit cae1f1939e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 14 deletions

View file

@ -50,13 +50,16 @@
<slot />
<button
type="button"
title="{iconDescription}"
aria-label="{iconDescription}"
class:bx--modal-close="{true}"
class="{closeClass}"
on:click
on:click="{closeModal}"
>
<Close size="{20}" class="bx--modal-close__icon {closeIconClass}" />
<Close
size="{20}"
class="bx--modal-close__icon {closeIconClass}"
aria-hidden="true"
/>
</button>
</div>