From b1e8bb7f982792e9f0224552b380f2c5a568a8eb Mon Sep 17 00:00:00 2001 From: Phil-Ah Date: Wed, 1 Jun 2022 18:10:42 +0200 Subject: [PATCH] Differentiate focused buttons in confirmation dialog (#2050) Users need to understand which option they are choosing in an confirmation dialog. Buttons for primary and secondary actions should be visually discernible when one is focused/hovered. The changes remove default-styling from buttons in confirmation dialogues. The style is set in the element using this dialog to better visually separate the primary and secondary action. Resolves #2049 --- gradle/changelog/differentiate_focused_buttons.yaml | 2 ++ .../ui-components/src/__snapshots__/storyshots.test.ts.snap | 6 +++--- scm-ui/ui-components/src/modals/ConfirmAlert.stories.tsx | 2 +- scm-ui/ui-components/src/modals/ConfirmAlert.tsx | 2 +- .../src/admin/roles/containers/DeleteRepositoryRole.tsx | 2 +- scm-ui/ui-webapp/src/groups/containers/DeleteGroup.tsx | 2 +- .../ui-webapp/src/repos/branches/components/BranchTable.tsx | 2 +- .../src/repos/branches/containers/DeleteBranch.tsx | 2 +- scm-ui/ui-webapp/src/repos/containers/ArchiveRepo.tsx | 2 +- scm-ui/ui-webapp/src/repos/containers/DeleteRepo.tsx | 2 +- scm-ui/ui-webapp/src/repos/containers/UnarchiveRepo.tsx | 2 +- .../repos/permissions/components/DeletePermissionButton.tsx | 2 +- scm-ui/ui-webapp/src/repos/tags/components/TagTable.tsx | 2 +- scm-ui/ui-webapp/src/repos/tags/container/DeleteTag.tsx | 2 +- .../ui-webapp/src/users/components/apiKeys/ApiKeyEntry.tsx | 2 +- .../src/users/components/publicKeys/PublicKeyEntry.tsx | 2 +- scm-ui/ui-webapp/src/users/containers/DeleteUser.tsx | 2 +- 17 files changed, 20 insertions(+), 18 deletions(-) create mode 100644 gradle/changelog/differentiate_focused_buttons.yaml diff --git a/gradle/changelog/differentiate_focused_buttons.yaml b/gradle/changelog/differentiate_focused_buttons.yaml new file mode 100644 index 0000000000..0f62fc689b --- /dev/null +++ b/gradle/changelog/differentiate_focused_buttons.yaml @@ -0,0 +1,2 @@ +- type: changed + description: Visually separate focused and hovered buttons in confirmation dialogues ([#2050](https://github.com/scm-manager/scm-manager/pull/2050)) diff --git a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap index d9953f55d8..20a3e7673d 100644 --- a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap +++ b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap @@ -16885,7 +16885,7 @@ exports[`Storyshots Modal/ConfirmAlert Autofocus 1`] = ` className="control" >