Compare commits

...

1 Commits

Author SHA1 Message Date
Elizabeth Thompson
da800addc7 fix(a11y): add aria-label to notification method remove button
WCAG 2.1 SC 4.1.2 (Name, Role, Value) — Level A.
2026-07-07 10:03:52 +00:00

View File

@@ -465,12 +465,12 @@ export const NotificationMethod: FunctionComponent<NotificationMethodProps> = ({
loading={methodOptionsLoading}
/>
{index !== 0 && !!onRemove ? (
// eslint-disable-next-line jsx-a11y/control-has-associated-label
<span
role="button"
tabIndex={0}
className="delete-button"
onClick={() => onRemove(index)}
aria-label={t('Remove notification method')}
>
<Icons.DeleteOutlined iconSize="l" />
</span>