Added aria-label to close button in announcement bar (#17169)

This commit is contained in:
Paul Knulst 2023-07-10 15:47:36 +02:00 committed by GitHub
parent e3098c5e1e
commit bcf9b9b612
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ export function AnnouncementBar({settings = {}}) {
return (
<div className={className}>
<div className="gh-announcement-bar-content" dangerouslySetInnerHTML={{__html: settings.announcement}}></div>
<button onClick={handleButtonClick}>
<button aria-label="close" onClick={handleButtonClick}>
<CloseIcon />
</button>
</div>