# Bug OP-9156 - Unexpected Behavior when editing Colors and Assigning to Work Package Types

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.0.0 |
| Observed in versions |  |
| Sprint | 12.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 11.3.x  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

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

## Description

### **Environment**:

Your OpenProject Version: &lt;VERSION&gt; / Cloud Edition

Operating System / Browser / OpenProject language: Win / Edge / English

### **Steps to reproduce:**

1.  Create new work package type
2.  Assign color &quot;gray-5&quot; to new type
3.  Open /openproject/colors
4.  Edit &quot;gray-5&quot; to different hex code

### **Actual Behavior**

*   The sorting has changed, and the edited color is at the very bottom.

<figure class="image op-uc-figure" style="width:50%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/22360/content"></div><figcaption class="op-uc-figure--description">gray-5 disappeared</figcaption></figure>

*   In the type, the color is hidden because it filtered out by the brightness filter

<figure class="image op-uc-figure" style="width:50%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/22361/content"></div><figcaption class="op-uc-figure--description">gray-5 disappears</figcaption></figure>

### **Expected Behavior**

*   The sorting is alphabetical not via update time
*   Instead of filtering bright colours out, allow all colors and show a warning for the bright colors
