mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 17:05:43 +01:00
Feature/fix tabulator stops (#1831)
Add tab stops to action to increase accessibility of SCM-Manager with keyboard only usage. Also add a focus trap for modals to ensure the actions inside the modal can be used without losing the focus. Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
This commit is contained in:
@@ -78,7 +78,13 @@ const DeletePermissionButton: FC<Props> = ({ namespaceOrRepository, permission,
|
||||
return (
|
||||
<>
|
||||
<ErrorNotification error={error} />
|
||||
<Icon name="trash" onClick={action} />
|
||||
<Icon
|
||||
name="trash"
|
||||
onClick={action}
|
||||
onEnter={action}
|
||||
tabIndex={0}
|
||||
title={t("permission.delete-permission-button.label")}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user