# Bug OP-18364 - AXe accessibility violations in Workflows, Permissions Report checkbox matrices

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-18364

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Administration, Administration / Roles and permissions, Administration / Roles and permissions / Global roles and permissions, Administration / Roles and permissions / Project roles and permissions, Modules and project features / Work packages, Frontend components and Primer design system |
| Target versions | 17.0.0 |
| Observed in versions | 17.0.0 |
| Sprint | 17.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.0.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | Yes |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Login as a user with permissions to manage global roles
    
2.  Go to Administration &gt; &nbsp;Users and permissions &gt; Permissions report
    
3.  OR go to Administation &gt; Work packages &gt; Workflow
    

### What is the buggy behavior?

*   AXe accessibility violations due to the checkboxes  not having labels
    

### What is the expected behavior?

*   No AXe accessibility violations: checkboxes should have labels and/or some form of accessibility labelling (e.g. `aria-labelledby`)
    

### Notes

Also reproducible in Chrome Dev Tools - Elements (Accessibility view) and Accessibility tab

### **Logs**

```text
       Found 2 accessibility violations:
     
       1) label: Form elements must have labels (critical)
           https://dequeuniversity.com/rules/axe/4.11/label?application=axeAPI
           The following 9 nodes violate this rule:
           
               Selector: input[value="add_project"]
               HTML: <input type="checkbox" name="permissions[39][]" value="add_project" data-checkable-target="checkbox" data-role="39" data-permission="add_project">
               Fix any of the following:
               - Element does not have an implicit (wrapped) <label>
               - Element does not have an explicit <label>
               - aria-label attribute does not exist or is empty
               - aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
               - Element has no title attribute
               - Element has no placeholder attribute
               - Element's default semantics were not overridden with role="none" or role="presentation"
               
               Selector: input[value="create_backup"]
               HTML: <input type="checkbox" name="permissions[39][]" value="create_backup" data-checkable-target="checkbox" data-role="39" data-permission="create_backup">
               Fix any of the following:
               - Element does not have an implicit (wrapped) <label>
               - Element does not have an explicit <label>
               - aria-label attribute does not exist or is empty
               - aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
               - Element has no title attribute
               - Element has no placeholder attribute
               - Element's default semantics were not overridden with role="none" or role="presentation"
               
               Selector: input[value="create_user"]
               HTML: <input type="checkbox" name="permissions[39][]" value="create_user" data-checkable-target="checkbox" data-role="39" data-permission="create_user">
               Fix any of the following:
               - Element does not have an implicit (wrapped) <label>
               - Element does not have an explicit <label>
               - aria-label attribute does not exist or is empty
               - aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
               - Element has no title attribute
               - Element has no placeholder attribute
               - Element's default semantics were not overridden with role="none" or role="presentation"
               
               Selector: input[value="manage_user"]
               HTML: <input type="checkbox" name="permissions[39][]" value="manage_user" data-checkable-target="checkbox" data-role="39" data-permission="manage_user">
               Fix any of the following:
               - Element does not have an implicit (wrapped) <label>
               - Element does not have an explicit <label>
               - aria-label attribute does not exist or is empty
               - aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
               - Element has no title attribute
               - Element has no placeholder attribute
               - Element's default semantics were not overridden with role="none" or role="presentation"
               
               Selector: input[value="view_all_principals"]
               HTML: <input type="checkbox" name="permissions[39][]" value="view_all_principals" data-checkable-target="checkbox" data-role="39" data-permission="view_all_principals">
               Fix any of the following:
               - Element does not have an implicit (wrapped) <label>
               - Element does not have an explicit <label>
               - aria-label attribute does not exist or is empty
               - aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
               - Element has no title attribute
               - Element has no placeholder attribute
               - Element's default semantics were not overridden with role="none" or role="presentation"
               
               Selector: input[value="manage_placeholder_user"]
               HTML: <input type="checkbox" name="permissions[39][]" value="manage_placeholder_user" data-checkable-target="checkbox" data-role="39" data-permission="manage_placeholder_user">
               Fix any of the following:
               - Element does not have an implicit (wrapped) <label>
               - Element does not have an explicit <label>
               - aria-label attribute does not exist or is empty
               - aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
               - Element has no title attribute
               - Element has no placeholder attribute
               - Element's default semantics were not overridden with role="none" or role="presentation"
               
               Selector: input[value="view_user_email"]
               HTML: <input type="checkbox" name="permissions[39][]" value="view_user_email" data-checkable-target="checkbox" data-role="39" data-permission="view_user_email">
               Fix any of the following:
               - Element does not have an implicit (wrapped) <label>
               - Element does not have an explicit <label>
               - aria-label attribute does not exist or is empty
               - aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
               - Element has no title attribute
               - Element has no placeholder attribute
               - Element's default semantics were not overridden with role="none" or role="presentation"
               
               Selector: input[value="edit_attribute_help_texts"]
               HTML: <input type="checkbox" name="permissions[39][]" value="edit_attribute_help_texts" data-checkable-target="checkbox" data-role="39" data-permission="edit_attribute_help_texts">
               Fix any of the following:
               - Element does not have an implicit (wrapped) <label>
               - Element does not have an explicit <label>
               - aria-label attribute does not exist or is empty
               - aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
               - Element has no title attribute
               - Element has no placeholder attribute
               - Element's default semantics were not overridden with role="none" or role="presentation"
               
               Selector: input[value="manage_public_project_queries"]
               HTML: <input type="checkbox" name="permissions[39][]" value="manage_public_project_queries" data-checkable-target="checkbox" data-role="39" data-permission="manage_public_project_queries">
               Fix any of the following:
               - Element does not have an implicit (wrapped) <label>
               - Element does not have an explicit <label>
               - aria-label attribute does not exist or is empty
               - aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
               - Element has no title attribute
               - Element has no placeholder attribute
               - Element's default semantics were not overridden with role="none" or role="presentation"
               
```

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/916456/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/916458/content">

### Environment information

**OpenProject installation type**

*   Hosted cloud edition
    

**OpenProject version**

**Core build**

[acfe0be9a00be667989ea3e0fcfc3298e55f1e09](https://github.com/opf/openproject/commits/acfe0be9a00be667989ea3e0fcfc3298e55f1e09)

**Product version**

[0025890064351202b008d43c5b0f587524301835](https://github.com/opf/saas-openproject/commits/0025890064351202b008d43c5b0f587524301835)

**Core version**

OpenProject 17.0.0

**Browser**

*   [x] Chrome
*   [ ] Firefox
*   [ ] Safari
*   [ ] 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_
