diff --git a/.changeset/slow-pans-applaud.md b/.changeset/slow-pans-applaud.md new file mode 100644 index 0000000000..31e22ebc65 --- /dev/null +++ b/.changeset/slow-pans-applaud.md @@ -0,0 +1,5 @@ +--- +'@openproject/primer-view-components': patch +--- + +Changes button text to dismiss Danger Dialog from "Close" to "Cancel" diff --git a/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/dark.png b/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/dark.png index 96a6885952..58953490d6 100644 Binary files a/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/dark.png and b/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/dark.png differ diff --git a/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/dark_colorblind.png b/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/dark_colorblind.png index de7239c238..a5fff003b2 100644 Binary files a/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/dark_colorblind.png and b/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/dark_colorblind.png differ diff --git a/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/dark_dimmed.png b/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/dark_dimmed.png index 756c46b60a..284b03d96f 100644 Binary files a/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/dark_dimmed.png and b/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/dark_dimmed.png differ diff --git a/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/dark_high_contrast.png b/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/dark_high_contrast.png index 3c65e5404d..2cb3dfc078 100644 Binary files a/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/dark_high_contrast.png and b/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/dark_high_contrast.png differ diff --git a/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/light.png b/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/light.png index f0e18f6d99..c4ca66f937 100644 Binary files a/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/light.png and b/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/light.png differ diff --git a/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/light_colorblind.png b/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/light_colorblind.png index ad5ab05683..2b06c0033b 100644 Binary files a/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/light_colorblind.png and b/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/light_colorblind.png differ diff --git a/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/light_high_contrast.png b/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/light_high_contrast.png index 3fbf4047e8..a9df421573 100644 Binary files a/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/light_high_contrast.png and b/.playwright/screenshots/snapshots.test.ts-snapshots/primer/open_project/danger_confirmation_dialog/default/light_high_contrast.png differ diff --git a/app/components/primer/open_project/danger_confirmation_dialog.html.erb b/app/components/primer/open_project/danger_confirmation_dialog.html.erb index a9e45b1634..5e19d5f29e 100644 --- a/app/components/primer/open_project/danger_confirmation_dialog.html.erb +++ b/app/components/primer/open_project/danger_confirmation_dialog.html.erb @@ -11,7 +11,7 @@ <% end %> <%= render(Primer::Alpha::Dialog::Footer.new(show_divider: false)) do %> - <%= render(Primer::Beta::Button.new(data: { "close-dialog-id": dialog_id })) { I18n.t("button_close") } %> + <%= render(Primer::Beta::Button.new(data: { "close-dialog-id": dialog_id })) { I18n.t("button_cancel") } %> <%= render(Primer::Beta::Button.new(type: (@form_wrapper.shows_form? ? :submit : :button), scheme: :danger, data: { "submit-dialog-id": dialog_id })) { I18n.t("button_delete_permanently") } %> <% end %> <% end %>