# Bug DREAM-220 - Danger Dialogs should use "alertdialog" ARIA role

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-220

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 15.3.1 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | Yes |
| Pull preview |  |
| List | a11y report 2025 |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Alexander Coles |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Enable a screenreader such as VoiceOver on macOS (enabled via System Settings \> Accessibility) - or equivalent on other platforms (e.g. Windows Narrator

2.  Visit the lookbook DangerDialog "with form" example here: <https://qa.openproject-edge.com/lookbook/inspect/primer/open_project/danger_dialog/with_form>

3.  Click **Click me**

### What is the buggy behavior?

Voiceover reads "delete dialog", "web dialog", "8 items".. etc.

### What is the expected behavior?

Voiceover reads "delete dialog", "web **alert** dialog", "8 items".. etc.

### 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> 

### **Logs**

<br>

### Screenshots and other files

<br>

### Environment information

<br>

**OpenProject installation type**

community.openproject.org

**OpenProject version**

OP 15.3

Primer View Components  0.54.0

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [x] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [ ] Windows
- [x] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [ ] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)

**Language**

*en\_GB*
