# Bug DREAM-449 - [Accessibility] Contrast issues in widget graphs

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

## Open points

_No work packages_

## Details

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

## People

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

## Planning

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

## Costs

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

## Description

### **What is the buggy behavior?**

  - There following widgets do not display with sufficient colour contrast:
    
      - Work Packages Overview
        
          - bar charts *(this was initially addressed in <mention class="mention" data-id="64230" data-type="work_package" data-text="#64230">\#64230</mention> , but needs to be revisited as the solution breaks rendering of non-bar graphs with newer versions of the charting library)*
    
      - Work Packages Graph
        
          - bar/horizontal bar charts
        
          - doughnut
        
          - line
        
          - pie
        
          - polar area
        
          - radar

### What is the expected behavior?

  - The contrast should be at least
    
      - 4,5:1 for text
    
      - 3:1 for background color or border colour in the graph

  - Use primer's colour scale
    
      - Background: `--display-${color}-scale-2`
    
      - Border: `--display-${color}-scale-6`

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