Skip to content

Commit

Permalink
fixed axeDevtools error by adding title attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
ens13533 committed Jul 1, 2024
1 parent c085b4a commit 58ebe60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion coral-component-dialog/src/scripts/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,9 @@ const Dialog = Decorator(class extends BaseOverlay(BaseComponent(HTMLElement)) {
setTimeout(() => {
const coralDialog = this._elements.wrapper.querySelector('coral-dialog-content');
const coralIcon = coralDialog.getElementsByTagName('coral-icon');
coralIcon[0].setAttribute('title', 'infoCircle');
if (coralIcon[0]) {
coralIcon[0].setAttribute('title', 'infoCircle');
}
}, 1000);
});
}
Expand Down

0 comments on commit 58ebe60

Please sign in to comment.