Alerting: Fix accessibility issues for alert rule list (#40816)

* accessibility attributes for rulelist

* change label text
This commit is contained in:
Peter Holmberg
2021-11-09 10:35:12 +01:00
committed by GitHub
parent 6c5dca9bb2
commit fd7dd6edf1
3 changed files with 20 additions and 5 deletions
@@ -65,7 +65,7 @@ export const Alert = React.forwardRef<HTMLDivElement, Props>(
)}
{onRemove && buttonContent && (
<div className={styles.buttonWrapper}>
<Button variant="secondary" onClick={onRemove} type="button">
<Button aria-label="Close alert" variant="secondary" onClick={onRemove} type="button">
{buttonContent}
</Button>
</div>