Skip to content

[#61630] Danger Dialog should use alertdialog ARIA role#246

Merged
HDinger merged 4 commits intomainfrom
fix/61630-danger-dialog-alertdialog-role
Feb 20, 2025
Merged

[#61630] Danger Dialog should use alertdialog ARIA role#246
HDinger merged 4 commits intomainfrom
fix/61630-danger-dialog-alertdialog-role

Conversation

@myabc
Copy link
Collaborator

@myabc myabc commented Feb 19, 2025

What are you trying to accomplish?

Improve semantics for users of assistive technology.

Screenshots

No visual changes

Integration

No.

List the issues that this change affects.

https://community.openproject.org/wp/61630

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?

Danger dialogs (both the confirmation and default, warning variant) clearly adhere to the alert dialog pattern:

The alertdialog role is to be used on modal alert dialogs that
interrupt a user's workflow to communicate an important message and
require a response.

See: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/alertdialog_role

Anything you want to highlight for special attention from reviewers?

N/A

Accessibility

  • No new axe scan violation - This change does not introduce any new axe scan violations.

Merge checklist

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

Danger dialogs (both the confirmation and default, warning variant)
clearly adhere to the alert dialog pattern:

> The alertdialog role is to be used on modal alert dialogs that
> interrupt a user's workflow to communicate an important message and
> require a response.

See: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/alertdialog_role
@changeset-bot
Copy link

changeset-bot bot commented Feb 19, 2025

🦋 Changeset detected

Latest commit: 9b76502

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

@github-actions
Copy link

⚠️ Visual or ARIA snapshot differences found

Our visual and ARIA snapshot tests found UI differences. Please review the differences by viewing the files changed tab to ensure that the changes were intentional.

Review differences

Copy link
Collaborator

@HDinger HDinger left a comment

Choose a reason for hiding this comment

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

Looks good, except for this one change where I am wondering whether this was added by accident?

@HDinger HDinger merged commit efe1579 into main Feb 20, 2025
@HDinger HDinger deleted the fix/61630-danger-dialog-alertdialog-role branch February 20, 2025 12:23
@openprojectci openprojectci mentioned this pull request Feb 20, 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