ConfirmModal: Auto focus delete button (#34917)

This commit is contained in:
Torkel Ödegaard 2021-05-31 08:42:59 +02:00 committed by GitHub
parent 37ab5ec7f4
commit ef13f7ece1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,6 +76,7 @@ export const ConfirmModal = ({
variant="destructive"
onClick={onConfirm}
disabled={disabled}
autoFocus
aria-label={selectors.pages.ConfirmModal.delete}
>
{confirmText}