Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Danger Dialog regression: unable to set custom button text #236

Merged
merged 4 commits into from
Feb 4, 2025

Conversation

myabc
Copy link

@myabc myabc commented Feb 4, 2025

What are you trying to accomplish?

Fixes a regression in 0.53.0 where callers are unable to set custom button text for the Danger Dialog.

Screenshots

Integration

List the issues that this change affects.

Risk Assessment

  • Low risk the change is small, highly observable, and easily rolled back.
  • Medium risk changes that are isolated, reduced in scope or could impact few users. The change will not impact library availability.
  • High risk changes are those that could impact customers and SLOs, low or no test coverage, low observability, or slow to rollback.

What approach did you choose and why?

Anything you want to highlight for special attention from reviewers?

Accessibility

  • Fixes axe scan violation - This change fixes an existing axe scan violation.
  • No new axe scan violation - This change does not introduce any new axe scan violations.
  • New axe violation - This change introduces a new axe scan violation. Please describe why the violation cannot be resolved below.

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Added/updated previews (Lookbook)
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

Copy link

changeset-bot bot commented Feb 4, 2025

🦋 Changeset detected

Latest commit: f7cd457

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@openproject/primer-view-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@myabc myabc force-pushed the fix/custom-button-text-regression branch from d578528 to d3cf2d9 Compare February 4, 2025 10:30
@myabc myabc changed the title Fix regression: unable to set custom button text Fix Danger Dialog regression: unable to set custom button text Feb 4, 2025
@myabc myabc requested a review from HDinger February 4, 2025 10:32
@myabc myabc force-pushed the fix/custom-button-text-regression branch from 609c28f to f7cd457 Compare February 4, 2025 11:10
@myabc myabc marked this pull request as ready for review February 4, 2025 11:11
@@ -1,4 +1,5 @@
<%= render(Primer::OpenProject::DangerDialog.new(id: "my-dialog",
title: "My dialog",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is needed to avoid Axe violations - #237 makes this param required.

@HDinger HDinger merged commit 087a3e0 into main Feb 4, 2025
33 checks passed
@HDinger HDinger deleted the fix/custom-button-text-regression branch February 4, 2025 11:34
@openprojectci openprojectci mentioned this pull request Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants